Aside from provisioning servers and creating sites, https://forge.laravel.com can do so much more, including deploying code to your sites. When you install a repository for your site, Forge automatically creates a deployment script that is executed every time you deploy your site. A deployment script is Bash code that tells Forge how to deploy your site, install Composer dependencies, build frontend assets, and reload the PHP-FPM process.

For example, by using the $FORGE_PHP environment variable instead of invoking the php binary directly, Forge will automatically utilize the correct version of PHP for you.

Armed with additional environment variables, we can fine-tune what our deployment script does depending on how the deployment is started.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners