Skip to content

Setting up a development environment

zoombody edited this page Nov 30, 2012 · 5 revisions

The development environment is similar to the production environment. You might want to choose to use different database connections when you test new code. For this use the development section in `config/database.yml`.

Asset pipeline

Assets that were compiled for the production environment with rake assets:precompile will cause conflicts in the development environment. They can be removed by running rake assets:clean.

Setting up an Development Environment on Ubuntu 11.04

First follow the steps to setup a minimal installation on Ubuntu: Ubuntu 11.04 minimal setup. Afterwards you can then install debugging support and start the server in debugging mode.

Debugging

Install debugger support with:

sudo gem install ruby-debug

Start server with

server --debugger

Simply insert the debugger statement in the Ruby code to invoke a debugger shell with the current context.

Clone this wiki locally