You have to inform heroku where to start : missing script: start
. In your package.json, you should have something like this:
"scripts": {
"start": "node index.js"
}
Where index.js
is your entry point.
As an alternative, you can specify in Procfile
:
web: node index.js
More Related Contents:
- Should I check in folder “node_modules” to Git when creating a Node.js app on Heroku?
- Permission denied (publickey) when deploying heroku code. fatal: The remote end hung up unexpectedly
- How to link a folder with an existing Heroku app
- Should “node_modules” folder be included in the git repository
- Cannot push to Heroku because key fingerprint
- Install npm module from gitlab private repository
- heroku: src refspec master does not match any
- How can I deploy/push only a subdirectory of my git repo to Heroku?
- Depend on a branch or tag using a git URL in a package.json?
- Getting an error pushing to github – Updates were rejected because a pushed branch tip is behind its remote
- failed to push some refs to [email protected]
- Heroku: How to push different local Git branches to Heroku/master
- After git push heroku – uploaded files on Heroku are lost
- update package.json version automatically
- Error: Cannot pull with rebase: You have unstaged changes
- git push heroku master says “Everything up-to-date”, but the app is not current
- Pushing to github after a shallow clone
- Error in git push heroku master through ssh behind proxy
- ‘git push heroku master’ is still asking for authentication
- What is the reason for “Procfile declares types -> (none)” in Heroku?
- npm install package from github repo subfolder
- How to push different local Git branches to Heroku/master
- How do I list all of the files in a commit?
- Track all remote git branches as local branches
- Git keeps prompting me for a password
- Two git repositories in one directory?
- git fetch, FETCH_HEAD and origin/master
- How do I convert a bare git repository into a normal one (in-place)?
- git pull keeping local changes
- How to create a new (and empty!) “root” branch?