-
Create a new app in heroku dashboard
-
Download and install the Heroku CLI
$ heroku login
$ cd my-project/
$ git init
$ heroku git:remote -a my-application-name
$ git add .
$ git commit -am "Fisrt commit"
$ git push heroku master
$ echo "web: node index.js" >> Procfile
- Modify the script element package.json file
"scripts": {
"start": "node index.js"
},
- Commit the new changes
$ git commit -am "Second commit"
$ git push heroku master
-
check overview tab to check the build status and deployed status in heroku dashboard
-
Chaeck the setting tab and domain section for the end point
-
use the follwing command to check the logs
$ heroku logs --tail