Initial Configuration of a RAILS Application


24 July 2011 at 19:51

Copy the example database configuration and adapt it to fit your needs:

$ cp config/database.yml.example config/database.yml
[..adapt config..]

Create the database:

$ RAILS_ENV="production" rake db:create

Migrate the database scheme:

$ RAILS_ENV="production" rake db:migrate

Fire up internal webrick based rails server and test your application:

$ RAILS_ENV="production" rails server

You might also do the same for your development environment.