Skip to content

Instantly share code, notes, and snippets.

@mbajur
Created November 13, 2018 10:18
Show Gist options
  • Save mbajur/f44160d409d1f345e4ad7903d652e296 to your computer and use it in GitHub Desktop.
Save mbajur/f44160d409d1f345e4ad7903d652e296 to your computer and use it in GitHub Desktop.
Prismo updating script
echo '== Stoping the app =='
docker-compose down
echo '== Pulling changes =='
git pull
echo '== Building the image =='
docker-compose build
echo '== Removing old assets'
rm -rf public/packs/*
echo '== Building new assets =='
docker-compose run --rm web bundle exec rails webpacker:compile
echo '== Running migrations =='
docker-compose run --rm web bundle exec rails db:migrate
echo '== Starting the app =='
docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment