|
|
|
|
|
by shawabawa3
4740 days ago
|
|
> Push to remote repo - SSH to server, and then pull from the same repo I have a server setup with a headless git repo and non-headless one. When I push to the headless repo, the post-receive hook goes to the other repo, pulls from the headless, runs tests and restarts the server So to deploy I just do git push deploy master
And get instant feedback that all the tests passed and server was restarted |
|
I always found that the hook never really worked for some bizarre reason. Even something as simple as:
cd /home/deployer/wordpress/wp-content/themes/my-theme && git pull origin master
failed.