开发者

How do you boot a rails app on a remote server into Development?

开发者 https://www.devze.com 2023-02-11 04:20 出处:网络
I totally apologize for being so naiive. But when I deploy to production, it开发者_C百科 is automatically boots up in production mode.

I totally apologize for being so naiive. But when I deploy to production, it开发者_C百科 is automatically boots up in production mode.

How do I alternatively boot this up in development mode?


Depends on what you are using to run your Rails application.

  • If you are using Passenger for Apache, set 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_options
  • If you are using mongrel or thin, it has an option for that. Check their docs
  • If you are using script/server pass it as an argument: script/server development
  • Or if you are using 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

0

精彩评论

暂无评论...
验证码 换一张
取 消