Search code examples
ruby-on-railsrubydeploymentproduction

Rails : deploying first app - production mode


I am very confused about this whole rails deploy thing. The confusion is that whilst developing the whole app it has been in development mode, which is fine. Now that I will deploy it, are there ammendments I need to make to files to change the rails app to production mode before deploying, or does deploying autmatically do this?

I guess what I am asking is how do I switch from one environment to another?


Solution

  • No need to change any files just set shell variable RAILS_ENV=production on your server