ruby on rails - heroku-like workflow on personal server -


i'm trying set server pure-git workflow similar heroku. don't need setting git, informative purposes, i'm using gitolite. i'd (somehow) write custom hooks in operating system (ubuntu) of system that, when receives push on particular branch, performs operators heroku (starting rack, mongrel, apache (for static serving pages in case), etc.

can point me towards resource or @ least started? google search didn't seem help...

it sounds want execute arbitrary functionality @ point in git workflow. git hooks way go.

if in git repo (inside .git folder), you'll see hooks folder. inside there number of example hook files different names. based on explanation above, want edit post-receive hook file, since called after new ref has been updated in remote repo (resulting push local one). more info, read the official documentation on hooks or read perhaps more approachable explanation.

you can put shell commands want in hook file. change filename post-receive.sample post-receive, add commands need start rack, mongrel, apache, etc., make file executable quick chmod +x post-receive , you're set.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -