To change from the development environment to the production environment, you will need to do the following things:
Migrating to the Production database
Configuring Mongrel to start in the production mode
For the former, migration files can be very helpful.
To migrate to the Production database, you will need to create a database named talewiki_production
. Then, only RoR will use the production database. This is due to the 'Convention-over-Configuration' philosophy of RoR. When Mongrel runs in the production mode, it looks for the database whose name ends with _production
. It will work only when such a database is found.
In order to migrate to the production database, first create a database named talewiki_production
. Then open the database.yml
file from the config
folder. Modify it so that the content looks as follows:
#MySQL (default setup). Versions 4.1 and 5.0 are recommended. # #Install the MySQL driver: # gem install...