The easiest path is to use the LightTPD (or "lighty") web server: a production-quality web server that's very popular in the Rails community. In fact, Rails 1.0 will use the LightTPD web server by default if it's installed on the local machine.
The first time you start the application by typing script/server, a LightTPD configuration file is created in the config/lighttpd.conf file. By default, your Rails application will run in the development runtime environment. To switch to the production environment, simply update the config/lighttpd.conf file and set the RAILS_ENV environment variable as follows:
|