I totally apologize for being so naiive. But when I deploy to production, it is automatically boots up in production mode.
How do I alternatively boot this up in development mode?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depends on what you are using to run your Rails application.
RailsEnvto development in your vhost, then restart the web server. For Passenger on Nginx check here: http://www.modrails.com/documentation/Users%20guide%20Nginx.html#_ruby_on_rails_specific_optionsusing mongrel or thin, it has an option for
that. Check their docs
script/serverpass it as an argument:script/server developmentrails server(for rails 3):rails server -e developmentOften you can also set the environment variable
RAILS_ENVto do this as well, for example:RAILS_ENV=development rails server