Rbenv: repo
Rbenv-gemset: repo
$ rbenv install 2.4.1
If rbenv complains you don't have that ruby version, upgrade ruby-build.
$ git clone git@github.com:felipefreitag/pangeas.git
$ cd pangeas
Make sure you're running the correct ruby version. Run:
rbenv versions
It should return something like:
system
...(other ruby versions installed)...
* 2.4.1 (set by /home/<path-to-repo-folder>/pangeas/.ruby-version)
Make sure you're using the correct gemset. Run:
rbenv gemset active
It should return:
.gems global
If both are ok, run:
$ gem install bundler
Verify that the bundler was installed inside pangeas/.gems
folder.
Always use this command to ensure the gems are installed in .gems
.
$ bin/bundle
Install javascript dependencies:
$ npm install
$ cp .env.sample .env
Ask a colleague for the values.
$ bin/rails db:create db:migrate db:seed
$ bin/rails s
You can check that it worked by browsing localhost:3000
.
$ bin/rspec
The coverage will be available on the coverage/
folder. Open coverage/index.html
on your browser to see details.
$ bin/rubocop
$ git push heroku master