Put the ruby file in .git/hooks/post-commit
Create a deploy script as .deploy_*
Example:
# File: .deploy_production
scp -R html example.com:public_html
Then use "deploy *
" in your commit message.
Example:
git commit -a -m'Finish styling. Deploy production'
Don't forget to make sure that both .git/hooks/post-commit
and .deploy_*
have execution permissions