Is it possible to deploy a website using git push? I have a hunch it has something to do with using git hooks to perform a git reset --hard on the
git push
git reset --hard
We use capistrano for managing deploy. We build capistrano to deploy on a staging server, and then running a rsync with all of ours server.
cap deploy cap deploy:start_rsync (when the staging is ok)
With capistrano, we can made easy rollback in case of bug
cap deploy:rollback cap deploy:start_rsync