Deploy-script with Git

Aar

Verified User
Joined
Feb 10, 2005
Messages
202
Location
Netherlands
I was curious about the GIT function within DirectAdmin, to be able to deploy a repository with the push of a button.

I built a site myself, which I placed in a remote Git. However, after deploying, a number of things still need to be done, such as setting up the config (credentials I don't want in Git), some symlinks etc., running Composer...

Is there a way to automatically run a .sh script after deploying, or something similar? Or is this a process I should do manually via SSH?

The more automated, the better... 😉

I took a quick look at the demo, but I don't see anything that's possible. Or should I submit a cool new feature request now?

1784639916383.png
 
I haven't tried it, but I'd assume you could go into the repo that DirectAdmin creates and just modify one of the post-receive hooks to do the configuration you want.
 
If you trigger the fetch & deploy via CI/CD then you can try to also allow the CI/CD to login into the ssh shell and run the commands on the DA server.
But apart from that I do not know any way of doing this automatic and/or out-of-the-box.
 
Back
Top