- Ruby version - ruby 2.5.0
- postgres
- sqlite
$ rails s
When dependencies or the database change run this
$ bundle install
$ rails db:create
$ rails db:migrate
$ rails db:seed
log into heroku, and run the command below in the online heroku console
$ rails db:migrate
$ rails runner "SecretKey.create(name: 'KEY_NAME', key: 'SECRET KEY')"
$ rails runner "SecretKey.where(name: 'KEY_NAME').destroy_all"
$ rails spec
When the database changes, you need to change the Test database.
$ RAILS_ENV=test rails db:drop
$ RAILS_ENV=test rails db:create
$ RAILS_ENV=test rails db:migrate
$ bundle exec rake annotate_models
$ git push origin master
Deployment is in Heroku, and build is in Travis CI. Once the bill is OK, then it is deployed to Heroku automatically.