Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

my little auto-deploy script

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
Octocat-spinner-32 serve.js
README.md

this little tiger allows me to do a git push production master and have the new code auto-deployed to production.

So, it relies on some conventions which you might not agree with and might not even be the best of ideas. This fell very squarely in the 'simplest thing that could possible work' category.

Say you have a project myproject.com

  • You have to have an upstart script: /etc/init/myproject.com.conf
  • You have to have a repo at: $HOME/repo/myproject.com
  • You have to have the code deployed at: $HOME/src/web/myproject.com

Yeah...not super portable...or really portable at all right now. So far this is just my first crack at it. It's working for me, and hopefully it will give you some ideas.

The cool thing about pushover is it serves your repositories over http so you can have a tiny little git http server all nicely integrated with node. And then you can use node-git-emit to write your post-receive hooks in node. It's great. You should check those modules out pronto.

Something went wrong with that request. Please try again.