I am trying to install Tracks (Trunk) on an Ubuntu (Gutsy) server. It works, but now I am trying to get it running via mongrel_cluster and running into an error which I can’t find much about on Google.
The steps thus far:
Install ruby (from source)
Install rubygems (from source)
Install mongrel, mongrel_cluster, rails, etc (gem install)
Configure database.yml, environment.rb (salt)
script/server -e production fires it up and that seem to work.
adduser mongrel
change perms on log/, db/tracks.db, tmp to mongrel
I then create a mongrel_cluster.yml file:
mongrel_rails cluster::configure -e production -p 8000 -N 2 -c /home/jestre/tracks -a 127.0.0.1—user mongrel—group mongrel
Try to start it up to test:
sudo mongrel_rails cluster::start
I then get the following (snipped) error in mongrel_8000.log
** Starting Rails with production environment…
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’: no such file to load—/home/jestre/tracks/config/environment (LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:147:in `rails’
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:113:in `cloaker_’
... snipped ...
I have a config/environment.rb, and config/environments/ but no environment. Does anyone have any idea what I might be doing wrong? Is there some incompatibility between the ruby/rails/etc I have installed and the ones Trakcs requires?
Any pointers gladly appreciated.
J
