-
-
Notifications
You must be signed in to change notification settings - Fork 537
Setting up a development environment
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`.
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
.
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.
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.