Tinkerwell 4 is out now! Get the most popular PHP Scratchpad application. Learn more

Forge CLI

Deployment Script

After linking your project directory with Laravel Forge, your forge.yml file will contain the current deployment script that you have configured on Laravel Forge.

You can modify this script, by manually editing the forge.yml file.

production:
  id: 1
  name: my-site
  server: 1
  quick-deploy: false
  deployment:
    - 'cd /home/forge/my-site'
    - 'git pull origin master'
    - '$FORGE_COMPOSER install --no-interaction --prefer-dist --optimize-autoloader'
    - ''
    - '( flock -w 10 9 || exit 1'
    - '    echo ''Restarting FPM...''; sudo -S service $FORGE_PHP_FPM reload ) 9>/tmp/fpmlock'
    - ''
    - 'if [ -f artisan ]; then'
    - '    $FORGE_PHP artisan migrate --force'
    - fi
  webhooks:
  daemons:

In order to apply the changed deployment script, you can either push the configuration file to Forge or manually trigger a new deployment.

Invoker

Instant admin panels for Laravel

Don’t waste time building admin panels for your Laravel applications. Let Invoker do the hard work for you. No coding. No setup. No stress.

Learn more
Invoker screenshot