Skip to content

Commit

Permalink
Merge pull request #42 from bdsumon4u/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
bdsumon4u authored Apr 24, 2024
2 parents 5da07b0 + e3e74b3 commit e2fcc24
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ else
fi

# Enter maintenance mode
# (php artisan down --message 'The app is being (quickly!) updated. Please try again in a minute.') || true
(php artisan down) || true
(php artisan down --message 'The app is being (quickly!) updated. Please try again in a minute.') || true
# (php artisan down) || true
# Update codebase
# git fetch origin production
# git reset --hard origin/production
git pull origin $branch --force

# Install dependencies based on lock file
# composer install #--no-interaction --prefer-dist --optimize-autoloader
composer install --no-interaction --prefer-dist --optimize-autoloader --no-progress --no-suggest $(if [ branch != "dev" ]; then echo "--no-dev"; fi)

# Migrate database
# php artisan migrate --force
php artisan migrate --force

# Note: If you're using queue workers, this is the place to restart them.
# ...

# Clear cache
# php artisan optimize
php artisan optimize

# Reload PHP to update opcache
# echo "" | sudo -S service php7.4-fpm reload
Expand Down

0 comments on commit e2fcc24

Please sign in to comment.