RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: ObjColumnist
Site: http://objcolumnist.com/
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?
Not being a Rails Expert, why did you wrap the different API Versions in a Module rather than just using a controller?
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?
Not being a Rails Expert, why did you wrap the different API Versions in a Module rather than just using a controller?