Sometimes new gems or database changes will be made after your initial setup.
To install new gems:
$ bundler install
To update the database for development/tests:
$ rake db:migrate
To update the database in production:
$ DB_ADMIN=1 rake db:migrate
To run the test suite:
$ rake test
To start a development server:
$ rails server
Rubocop is used to maintain code quality.
To run rubocop:
$ rubocop --rails
To send the result to .rubocop_todo.yml
:
$ rubocop --rails --auto-gen-config
The generated config file can then be slowly worked through and corrected as needed.
To run rubocop with the config in rubocop_todo.yml
:
$ rubocop --rails --config `.rubocop_todo.yml`