I created a simple CRUD implementation that I will be using for deployment.

https://github.com/jsafe00/dockerize-ruby-on-rails-crud

Steps:

  1. Login to your heroku account.

2. git init

3. heroku create { name of your app}

Heroku Dashboard

4. git add .

 git commit -m "first commit"

5. I encountered error when pushing the main branch. That's why I created master branch.

git checkout -b master

git push heroku master

6. Execute migration command.

heroku run rake db:migrate

7. Execute seeder command

heroku run rake db:seed

8. heroku apps:info

9. check your app in the browser

Note: I learned about a command called: rails zeitwerk:check --trace. When I ran it, it gave me the specific error.