The above link will help you understand a little better how the
process of deploying rails to production works.
Capistrando is a very helpful tool, but its not hard to do it
Basically, what you have to do is:
1. Prepare the production server
--Install: gems, ruby, rails
--Select a web server application: apache, mongrel, etc
--Configure the web server application: this is the hardest part IMO
2. Copy the files
--Copy the whole rails structure you have locally to the production
--If you are going to use FCGI, you will need to fix the dispatch.fcgi
in your new server. The deployment guides should help you on this
3. Create database/user
--Don't forget to migrate the database: rake db:migrate
4. Run the web server app and see if it works
--Go back to Configuring the web server app and fix it
--Usually in the web server app you will be able to configure which
RAILS_ENV to run. If it does not work and rails keeps running on
development, edit environments.rb and uncomment the line where it sais
RAILS_ENV ||= production.
This is just a basic guide. I probably forgot something. Use the
guides to help you, use Google search and also this list's search to
get more information about problems you encounter.
This is a step that is going to take a few hours for you to get going,
but you only need to go trough it once for each production server you
If all you want is to run WEBrick in production environment, use ruby
script/server -e production.