heroku keys:add
Press y and hit Enter.
heroku create {unique-project-name}
Inside the file package.json
- Remove key value pair for
"test"
. - Add a key value pair
"start": "{command-to-run-server}"
. Eg."start": "node src/app.js"
. - Dev's can now run
npm run start
to run on localhost.
Change the listen function for PORT
. Also, make changes to statements which contains localhost
.
git push heroku {branch-name}