Heroku Deployment
Simple steps towards deploying your Rails or Node application on Heroku

Deploying applications can be difficult and confusing. Therefore, I have simplified exactly what you need to do to correctly deploy your backend application to Heroku without too much stress.
Step 1: Create an account on Heroku if you do not have one already, and create a new app within your account(click on ‘New’ and select ‘Create new app’).
Step 2: Click on the project, click on ‘Deploy’, connect the app to your Github repository associated with the app, and I recommend then enabling automatic deploys which will deploy from the master branch of that remote repository on your Github!
Step 3: Make sure that your database is included as an ‘add-on’ feature of your application. In your application, click on ‘Resources’ and you can quickly add add-ons, such as ‘Heroku Postgres’. This is a necessary designation to assure that Heroku is using its Postgres database with your project.
Step 4: Install the Heroku CLI, as this will make it simple to work with Heroku from your terminal. There are a few installation methods that can be found here.
Step 5: From your terminal follow these commands to assure Heroku is all connected and ready to deploy your application.
1. heroku git: remote -a app_name
$add remote to your local repository
2. git remote -v
$checks that the correct repository is connected
3. git push heroku master
$push local master to heroku remote Rails =>
4. heroku run rails db:schema:load
$migrates database Node =>
4. heroku run knex migrate:latest
$migrates database
Yay! Your Heroku application should be all ready and working! It may be necessary to consult the Heroku documentation here if you run into any issues, but I hope this post helped to simplify your Heroku experience!