RailsCasts Pro episodes are now free!

Learn more or hide this

Spencer MacDonald's Profile

GitHub User: ObjColumnist

Site: http://objcolumnist.com/

Comments by Spencer MacDonald

Avatar

Im struggling to get this solution to start with the environment set as staging.

I have tried updating the unicorn init file to pass the -E argument:

CMD="cd <%= current_path %>; bundle exec unicorn -D -c <%= unicorn_config %> -E <%= stage %>"

But Rails.env always says production.

Any ideas?

Avatar

Not being a Rails Expert, why did you wrap the different API Versions in a Module rather than just using a controller?