How to set a ror application environment for production?

Hi all,

I would like to know how to set the production environment in a ruby on
rails application in the real server?

Thanks in advance and best regards,


Hey Art,

assuming you have configured database.yml, you can simply start e.g.
rails in mongrel using

mongrel_rails start -e production -p 80

That’s it, you’re rails server listens on port 80 and runs in
production mode. If you want to actually deploy it on a real server I
would recommend “hiding” mongrel behind apache, lighttpd etc. using
using apache et al as proxy. Simply google for “apache rails” or start
for a start.



In other words I would like to switch from development mode to
production mode.

Thanks again in advance.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs