Last active
September 7, 2020 07:32
-
-
Save rezuankassim/6996e75c0dcd8e6715ff1e0161656a61 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
# Change to the project directory | |
cd /var/www/html/analytic | |
# Turn on maintenance mode | |
php artisan down | |
# Pull the latest changes from the git repository | |
# git reset --hard | |
# git clean -df | |
sudo git pull | |
# 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 | |
php artisan route:clear | |
php artisan route:cache | |
# Clear and cache config | |
php artisan config:clear | |
php artisan config:cache | |
# Clear and cache views | |
php artisan view:clear | |
php artisan view:cache | |
# Install node modules | |
npm install | |
# Build assets using Laravel Mix | |
# npm run production | |
# Purge horizon | |
php artisan horizon:purge | |
# Terminate horizon | |
sudo php artisan horizon:terminate | |
# Restart queue | |
sudo php artisan queue:restart | |
# Turn off maintenance mode | |
php artisan up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment