This is the Issue I follow the (The Perfect Work-flow with Git, GitHub, and SSH) of Jeffrey Way on youtube, if you want to watch it this is the link: http://youtu.be/hv4hwgQO9xI
Anyway when I push a commit to a Github Repository my webpage doesn’t update the remote server repository.
In the service Hooks I put http://zazon.mx/github.php
The Script of github.php looks like this:
<?php shell_exec(‘git pull’); ?>
I don’t know why my remote repository doesn’t update with the github one when I push a commit to github.
I use Ubuntu 12.04 with Apache 2, what am I doing bad ?
Of course if I log to shell with my credentials: ssh root@myip and I put git pull I update my remote repository this way.
I apreciate a help thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
What user is apache running as? <br><pre>sudo netstat -plutn | grep apache</pre>
In 99% of the cases the reason is the lack of permissions for the user to finish the operation. <br>Check the Apache error.log and you will get to know all the details.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.