heroku procfile node code example
Example 1: Procfile
web: gunicorn app:app
^ | ^
gunicorn as | main app name
server |
Example 2: deploy react js heroku
npm install -g create-react-app
create-react-app my-app
cd my-app
git init
heroku create -b https://github.com/mars/create-react-app-buildpack.git
git add .
git commit -m "react-create-app on Heroku"
git push heroku master
heroku open
Example 3: node js procfile heroku starter
web: node app.js
//where app.js is the name of your js server file