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

iftekhs's avatar
Level 13

How to make deploy script using cpanel.

Hi, you know there is a deploy script in laravel forge that runs when a project is deployed? Can I do something like this using my Cpanel? like write my own deploy script?

0 likes
5 replies
iftekhs's avatar
Level 13

@Helmchen Can you explain a bit what do you mean by -> configure a post commit hook

Helmchen's avatar
Helmchen
Best Answer
Level 15

@iftekhs just look into https://www.namecheap.com/support/knowledgebase/article.aspx/10113/2210/how-to-use-git-version-control-cpanel-plugin/#deployment

PLEASE NOTE: cPanel automatically adds a post-receive hook to all new repositories which will trigger the deployment each time you push updates to the repository. Cloned repositories can only be deployed manually.

post-recceive hook was what i was referring to with "post-commit hook" .. i am old and i've grown up with Subversion :>

Snapey's avatar

Do you have ssh access? if so you can write a simple bash script.

Please or to participate in this conversation.