my face
About Me

Published Posts

All Posts

New Post


View by Tag:

interviewing, code, testing, philosophy, blog, wantmyjob, virtualization, railsmud, heroku, ruby, published, neoarchaeology, railsgame, rails, juggernaut, astrino, cheaptoad, shannaspizza, mongodb, refactorit, devise, rvm, passenger


FeedBurner picture


Online Portfolio

Resume

Profile on LinkedIn

Recommend Me

Setting up God

Posted: 16 months ago (2009-04-23 18:36:05 UTC )

Based primarily on the front page of its web site, I set up God on my machine. First, I had to get it booting up when its VM did, so I created a start file for it in /etc/init.d on my Ubuntu system:

Note that I had to set the path and RUBYOPT variables appropriately. Otherwise, no worky.

I also needed a top-level script to read through my config files:

I set the pidfile directory for daemonized scripts, though I don't use any yet. I also made sure to include "*.god" not just "*", because it's nice to have extra bits like READMEs and files with tildes that your editor leaves behind that don't get run.

I needed to run NGinX for my current setup:

And you'll see a striking similarity in this blog's setup file:

Note my password being passed in as an environment variable, cleverly obscured. This is how Heroku does it, and is probably a fabulous idea just in general.

Previous: Always Be Jabbing / Next: A Quick Look Under the Rails

Edit | Destroy | See All Posts

blog comments powered by Disqus