C83 / THP_2.0

0 stars 0 forks source link

Add files for heroku pipeline #16

Closed C83 closed 6 years ago

C83 commented 6 years ago

The last step of this issue isn't done now because the Lesson model isn't push on the master branch.

.ruby-version and .ruby-gemset

Change the version of ruby in Gemfile. App will read the version in a file : File.read('./.ruby-version') To create the .ruby-version and .ruby-gemset files : https://rvm.io/workflow/projects rvm --ruby-version use 2.5.1@course_api

Procfile :

Create a new file called Procfile Run puma server : web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development} Add migration : release: rails db:migrate

closes #8