Reputation: 1126
I want to deploy my website using git, but I have a severe problem: my hosting provider doesn't allow git hooks to run. How can I deploy my site without it? I can even manually run some scripts.
Upvotes: 4
Views: 186
Reputation: 124834
Run manually the same steps that you would normally do in your post-receive hook, most importantly:
cd /path/to/website
git pull
This assumes that /path/to/website
is a clone from your Git repository, and you have configured its current branch to track the branch of the Git repository where you deploy your releases.
So after you push your commits to your Git repository, you can bring your website up to date with:
ssh yourserver 'cd /path/to/website; git pull'
Upvotes: 5