Clone the repository, and then run:
bundle install --without production bundle exec rake db:setup
It's a good idea to run five consoles:
- Server with
bundle exec rails server
- Guard with
bundle exec guard
- Rails console with
bundle exec rails console
- Yard server with
bundle exec yard server --reload
- A regular terminal for git and file manipulation
Generate docs using the
yard command, and they will be saved in
--reload which generates a fresh docs from your code on refresh, to keep an
eye on your method docs.
guard in a console to continuously test the app on every save.
bundle exec rake test before deploying!
Mailpenny uses postgresql as the DB, and in production automatically loads from
DATABASE_URL config var.
If using heroku, remember to run
heroku run rake db:create && heroku run rake db:setup