Skip to content

Instantly share code, notes, and snippets.

@jon3laze
Last active May 25, 2023 21:31
Show Gist options
  • Select an option

  • Save jon3laze/3eacfe07ab8e7817b37b4c76a4be9435 to your computer and use it in GitHub Desktop.

Select an option

Save jon3laze/3eacfe07ab8e7817b37b4c76a4be9435 to your computer and use it in GitHub Desktop.
Procedure for pushing laravel project to prod
php artisan down
git pull
composer install
php artisan migrate
sudo service php8.1-fpm reload
php artisan optimize:clear
php artisan up
@jon3laze
Copy link
Author

sudo visudo and add {user} ALL=NOPASSWD: /usr/sbin/service php8.1-fpm reload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment