4 ms·
Could you put them in a .sh file and then just run `sh setup_dewey.sh`? Maybe put `&&` between them so that if one fails, it won't keep running through the scri
by mdasen 2y ago
Could you put them in a .sh file and then just run `sh setup_dewey.sh`? Maybe put `&&` between them so that if one fails, it won't keep running through the script?
- dewey 2y agoYep, in theory I think that should work nicely. So the recovery procedure after a server died would be to restore the dokku data directory from backup and then re-run all the commands. I haven't tested that but I think that should do the job. Right now I keep the list of commands more as a reference to look up things like how I mounted a volume or my naming scheme for data directories.
- chuckadams 2y ago> Maybe put `&&` between them so that if one fails, it won't keep running through the script? Or just add `set -o errexit` at the top of the script. Or use make.