Deploy Process (with Heroku) (Assume you have heroku & github account, and the command run through termian if not other explaination)
- install heroku and then login in your terminal < heroku login>
- create new project with desired name, otherwise create with random name < heroku create your-project-name >
- Now you can push your local repo to heroku's git which is generated automatically. < git push heroku master #heroku is just path to the app git, check it with git remote -v whether it exist >
- If eveything success, then migrate the db with < heroku run rails db:migrate >
- Then go to heroku website and find your app, link it to your git repo. It will allow the heroku auto deploy the app whenever your linked repo update.
- Sometime error migth occurr if you forget to migrate the db.