Last active
September 30, 2016 04:11
-
-
Save jonathanborges/69ef00edd3391164a7858dd07e3a3901 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
GIT_WORK_TREE=/home/application git checkout -f | |
cd /home/application && docker-compose up -d --build | |
docker exec -i application_workspace_1 /bin/bash -c 'composer install' | |
docker exec -i application_workspace_1 /bin/bash -c 'npm install' | |
docker exec -i application_workspace_1 /bin/bash -c 'php artisan cache:clear' | |
docker exec -i application_workspace_1 /bin/bash -c 'php artisan config:cache' | |
docker exec -i application_workspace_1 /bin/bash -c 'php artisan migrate --force' | |
docker exec -i application_workspace_1 /bin/bash -c 'php artisan optimize' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment