Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 892 Bytes

File metadata and controls

53 lines (41 loc) · 892 Bytes

README

Setup

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

Running tests

To run the test suite:

$ rake test

Run the development server

To start a development server:

$ rails server

Rubocop

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`