3 ms·
I use this deploy script for my hobby project: https://gist.github.com/tacone/230d5c305a9c5eff7f58ea2744f2028c https://gist.github.com/tacone/230d5c305a9c5eff7f
by tacone 3y ago
I use this deploy script for my hobby project: https://gist.github.com/tacone/230d5c305a9c5eff7f58ea2744f2028c https://gist.github.com/tacone/230d5c305a9c5eff7f58ea2744f20...
It will connect over ssh, pull the code, build the containers and restart them (scripts/live is just a wrapper around docker-compose).
If the build fails, the services will keep running.
The only problem I have is that hitting CTRL+C in the very moment the containers are being restarted will leave me with the services down.