Running on the Joyent Accelerator

I finally received the connection details to my shiny new Solaris-based Joyent Accelerator over the weekend - apparently some hardware delays pushed things back a bit. Getting my Mephisto install running was pretty painless, here’s how I did it.

After logging in, I checked I had ruby

:~] admin$ ruby -vruby 1.8.5 (2006-12-25 patchlevel 12) [i386-solaris2.8]

Thinking I might have to install Ruby Gems, I checked that also:

~] admin$ gem -v0.9.2

Excellent, so no need to install anything there, brilliant.

The most stable setup I’ve had so far has consisted of running Apache and Mongrel. My preference is to run a couple of Mongrel instances proxied to from Apache. For that, we need mod_proxy_balancer and for that we need Apache 2.2

~] admin$ apachectl -vServer version: Apache/2.2.4 (Unix)Server built:   Feb 19 2007 00:18:52

So, to install Mongrel I did (following a little from TextDrive’s notes)

~] alias make=/opt/csw/bin/gmake~] alias install=/opt/csw/bin/ginstall~] sudo gem install mongrel~] sudo gem install mongrel_cluster

Sweet. So, all that remained was to get my existing database copied over using mysqldump, a quick rake db:migrate to bring my database schema up-to-date (so I can work with the latest Mephisto code) and all is well.

Finally, all that was left was to add a new virtual host configuration file for Apache. I used the sample that Joyent/TextDrive provided.

In total, it took me about 15/20 minutes this morning whilst eating breakfast. Pretty easy!