Skip to content

Commit 83efa00

Browse files
Update example forge deployment script, and add line about migrate command.
Related: #1572
1 parent 7f9a6f4 commit 83efa00

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

content/collections/docs/laravel-forge.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,19 @@ The Deploy Script area is where you'd add commands to install Composer and NPM d
5353

5454
``` shell
5555
cd /home/forge/{example}.{tld}
56-
git pull origin main
56+
git pull origin $FORGE_SITE_BRANCH
57+
58+
$FORGE_COMPOSER install --no-dev --no-interaction --prefer-dist --optimize-autoloader
59+
60+
( flock -w 10 9 || exit 1
61+
echo 'Reloading PHP FPM...'; sudo -S service $FORGE_PHP_FPM reload ) 9>/tmp/fpmlock
62+
5763
php please cache:clear
5864
npm ci && npm run production
5965
```
6066

67+
Unless you're using the [Eloquent Driver](https://github.com/statamic/eloquent-driver), you may want to comment out the `$FORGE_PHP artisan migrate --force` command from your deployment script.
68+
6169
If you're planning on using the Git integration, you may want to prevent content changes from the Control Panel from triggering "full" deployments in Laravel Forge. Learn more about this on the [Git Automation](/git-automation#customizing-commits) page.
6270

6371
## Advanced Control

0 commit comments

Comments
 (0)