Reputation: 27114
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?
Upvotes: 3
Views: 559
Reputation: 28554
Depends on what you are using to run your Rails application.
RailsEnv
to 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_optionsscript/server
pass it as an argument: script/server development
rails server
(for rails 3): rails server -e development
Often you can also set the environment variable RAILS_ENV
to do this as well, for example: RAILS_ENV=development rails server
Upvotes: 3