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

Firemaps's avatar

How to trigger auto deploy from Gitlab with Forge?

Hi guys,

I am running a AWS server on Forge

There is a url that I need to put somewhere on gitlab to trigger auto deploy, but where do I put it?

Docs on forge could really be updated for us noobs :-)

"It's simple. When you commit fresh code, or when your continous integration service finishes testing your application, instruct the service to make a GET or POST request to the following URL. Making a request to this URL will trigger your Forge deployment script:"

Sounds great, but where does it go??

0 likes
4 replies
J_shelfwood's avatar

Sounds like something you should be searching for on the gitlab documentation rather than forge. Personally I find the docs perfectly fine.

Firemaps's avatar

Yes I am looking, but I can't find it that's why I am asking for help

I have another server on digital ocean and it auto deploy worked out of the box, so I'm not sure if it's a forge issue or a gitlab issue or AWS

codaniel's avatar

If you go to gitlab.com and go to Settings->Integrations you will see a section for your web hooks.

mikevrind's avatar

I always used the Gitlab webhooks to make a call to a specific page within a projects. From there I executed the deploy process by calling a couple of CLI commands (off course not without a little bit of validation of the incoming request).

I used https://laravelcollective.com/docs/master/ssh to execute the CLI commands (like git pull, db migrations, compiling assets).

Please or to participate in this conversation.