Skip to content

Instantly share code, notes, and snippets.

@jonathanborges
Last active September 30, 2016 04:11
Show Gist options
  • Save jonathanborges/69ef00edd3391164a7858dd07e3a3901 to your computer and use it in GitHub Desktop.
Save jonathanborges/69ef00edd3391164a7858dd07e3a3901 to your computer and use it in GitHub Desktop.
#!/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