Mine is just:
#!/bin/sh
export MIX_ENV=prod
export PORT=3080
cd assets
npm install
./node_modules/.bin/brunch build --production
cd ..
mix deps.get
mix phx.digest
mix release "${@}"
I just git pull, run that script, run a test or two then swap to the new version via system-ctl (which I could put in script too, and probably should since I always run the same commands anyway…).
You could easily push those over SSH as well, that’d be fairly trivial.


















