Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Xation's avatar

Forge, where is the "deployment script" ? [Horizon]

Hey, i'm following this article https://medium.com/@taylorotwell/deploying-horizon-to-laravel-forge-fc9e01b74d84 for deploying horizon to forge. Tylor say "After you have added the daemon, you only need to add the php artisan horizon:terminate command to the end of your deployment script."

But I don't find where to edit the deployment script inside forge website like the snapshot

0 likes
4 replies
kreitje's avatar

When you go into a site, and see the green 'Deploy Now' button to the right, just below that is the 'Deployment Script' area. It's the one that does the git pull, reload php-fpm, etc.

https://forge.laravel.com/servers/{server id}/sites/{site id}

From the forge dashboard page

Select active server Select active site (at the bottom) Now you should see 'Deployment Script' area

Xation's avatar

@kreitje I feel totally stupid. I can not find the button "Deploy Now". It's possible to make some screenshot ?

I'm using Laravel Envoyer. And that's why (maybe) inside https://forge.laravel.com/servers/{server id}/sites/{site id} I've no "apps".

I have to do this rather on the site Envoyer?

Robstar's avatar

@Xation In Forge click on a server and then on a site. The top box box as a green "Deploy now" button. The second box has a text area to edit the deployment script.

Xation's avatar

@Robstar Inside App ? No I've nothing because I'm using Envoyer.io. I add the command inside the Deployment Hooks on Envoyer. After the Purge Old Releases.

Please or to participate in this conversation.