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/projectsrvm --ruby-version use 2.5.1@course_api
course_api is the name of the gemset. It will create after.
Then, leave and re-enter in the app repository : the new gemset will be used. So run gem install bundler and bundle install to install all gems in the new gemset.
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
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/projectsrvm --ruby-version use 2.5.1@course_api
gem install bundler
andbundle install
to install all gems in the new gemset.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