Last active
October 27, 2025 11:27
-
-
Save mstaack/b8dbedcb70eaa9f862d5ad62845947a6 to your computer and use it in GitHub Desktop.
laravel-forge-deploy
This file contains hidden or 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
| $CREATE_RELEASE() | |
| cd $FORGE_RELEASE_DIRECTORY | |
| composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader | |
| $FORGE_PHP artisan optimize | |
| $FORGE_PHP artisan storage:link | |
| $FORGE_PHP artisan migrate --force | |
| $FORGE_PHP artisan filament:optimize | |
| $ACTIVATE_RELEASE() | |
| touch /tmp/fpmlock 2>/dev/null || true | |
| ( flock -w 10 9 || exit 1 | |
| echo 'Restarting FPM...'; sudo -S service $FORGE_PHP_FPM reload ) 9</tmp/fpmlock | |
| $RESTART_QUEUES() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment