Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 1.37 KB

README.md

File metadata and controls

42 lines (24 loc) · 1.37 KB

Divebook

Build Status Code Climate Test Coverage

Divebook is a project under development. Not much more to see. By Naoise Golden

Install & config

Needs Ruby 2.2.0, Rails 4.2 and PostgreSQL (using 9.2.1).

$ git clone [email protected]:naoisegolden/divebook.git & cd divebook
$ bundle install
$ rake db:create
$ rake db:migrate

$ heroku login
$ heroku git:remote -a divebook
$ heroku keys:add

Create file ./config/app_environment_variables.rb and define the needed environment variables. Change DB settings in ./config/database.yml and put your username.

If PostgreSQL needs to be installed:

$ brew install postgres
$ initdb /usr/local/var/postgres

Run

$ rails server

To start the PostgreSQL server:

$ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

Deploy

$ git push heroku master

If a migration file has been pushed:

$ heroku run rake db:migrate