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.