I've spent the past couple of days setting up svn, mongrel, and capistrano to deploy my app, and I finally got it working with one caveat. When I attempt to deploy my app from my local machine (cap deploy), the app won't start correctly because the line in environment.rb:
# ENV['RAILS_ENV'] ||= 'production'
is commented out. If I uncomment this line, everything works correctly. However, I would like to leave this uncommented because I do not want to develop locally in production mode, and I would like to not have to comment/uncomment this line everytime I get ready to deploy or test something locally.
I believe that when you start mongrel, it should set the environment on its own:
run "cd #{current_path} && mongrel_rails start -e production -p #{mongrel_port} -d"
but this doesn't seem to be working. Has anyone experienced this problem? It's the last little thing that's keeping me from having a hassle-free deployment! TIA