post-receive hook
Created by: jbrooksuk
I'm trying to setup a post-receive
hook which will deploy my site from local to live. Basically, they're different folders in the same location; /var/www/
One is called site
the other is site_dev
for example.
What I'm trying to do is setup a hook so that when I push to the master of site_dev
GitLab will automatically pull the changes into site
. I've tried following tutorials yet nothing.
I'm running sudo -u gitlab bundle exec rake environment resque:work QUEUE=* VVERBOSE=1 PIDFILE=tmp/pids/resque_worker.pid RAILS_ENV=production --trace
on the server and my pushes are being noticed by Resque, however my post-receive
hook isn't doing anything.
Does anybody have any ideas?