name: deployprod description: Promote the dev.smesh.lol instance to production smesh.lol. This skill should be used when the user invokes /deployprod after testing changes on dev. Copies the relay binary and web assets from the dev instance to prod on root@orly, then restarts the prod service. No local rebuild needed.
Promote dev.smesh.lol to smesh.lol by copying the running dev binary and web assets to the prod instance on root@orly.
Before promoting, verify:
ssh root@orly 'systemctl is-active smesh-dev'Execute these steps in order via ssh root@orly:
`
ssh root@orly 'systemctl stop smesh'
`
Wait for the store flush to complete (can take 10-20s). Verify with systemctl is-active smesh returning inactive.
`
ssh root@orly 'cp /home/mleku/.local/bin/smesh-dev /home/mleku/.local/bin/smesh'
`
`
ssh root@orly 'rsync -a --delete /home/mleku/smesh-web-dev/ /home/mleku/smesh-web/'
`
`
ssh root@orly 'systemctl start smesh'
`
`
ssh root@orly 'systemctl is-active smesh'
`
Should return active. Check the journal for startup confirmation:
`
ssh root@orly 'journalctl -u smesh -n 5 --no-pager'
`
Look for ORLY ... listening on 127.0.0.1:3335.
`
curl -s 'https://smesh.lol/' -H 'Accept: application/nostr+json' | head -1
`
| dev | prod | |
|---|---|---|
| Binary | /home/mleku/.local/bin/smesh-dev | /home/mleku/.local/bin/smesh |
| Web assets | /home/mleku/smesh-web-dev/ | /home/mleku/smesh-web/ |
| Service | smesh-dev.service | smesh.service |
| Data | /home/mleku/smesh-data-dev/ | /home/mleku/smesh-data/ |
| Port | 3336 | 3335 |