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

GodziLaravel's avatar

Laravel and Gitlab

Hello ,

I would like to know when I Merge a branch to Master, how to update my files on the production server (web hosting) ?

Thanks

0 likes
1 reply
ChristophHarms's avatar

You use webhooks. Write some logic that pulls the repo, does everything to make it production-ready and copies it to production. Make that logic accessible (triggerable) via URL. Configure a webhook in your Gitlab repo (or any repo, all the git hosters can do webhooks) that gets send to said URL whenever something is pushed to or merged into master.

Please or to participate in this conversation.