Created
November 13, 2018 10:18
-
-
Save mbajur/f44160d409d1f345e4ad7903d652e296 to your computer and use it in GitHub Desktop.
Prismo updating script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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