Created
October 13, 2018 00:46
-
-
Save beauraines/c01a9ba71ccd087344a595c27d24b7fa 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
#!/usr/bin/env bash | |
set -x | |
### Based on https://gist.github.com/BenSampo/aa5f72584df79f679a7e603ace517c14 | |
# Change to the project directory | |
#cd /home/forge/domain.com | |
# Turn on maintenance mode | |
#php artisan down | |
# Pull the latest changes from the git repository | |
git pull origin master | |
# Install/update composer dependecies | |
composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev | |
# Run database migrations | |
php artisan migrate --force | |
# Clear caches | |
php artisan cache:clear | |
# Clear expired password reset tokens | |
php artisan auth:clear-resets | |
# Clear and cache routes | |
### Disabled because of closures in routes files | |
#php artisan route:clear | |
#php artisan route:cache | |
# Clear and cache config | |
php artisan config:clear | |
php artisan config:cache | |
# Install node modules | |
npm install | |
# Build assets using Laravel Mix | |
# npm run production | |
# Install Bower Components | |
bower install | |
# Build assests with grunt | |
grunt concat sass copy babel | |
# Turn off maintenance mode | |
#php artisan up | |
echo "Don't forget to record the deployoment with New Relic" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment