📅  最后修改于: 2022-03-11 15:04:33.098000             🧑  作者: Mango
Prequisite:-
try npm run build to check if build script works or not locally.
server.js is present endpoint.
package.json
{
"name": "server",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"server": "nodemon server.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
...
},
"devDependencies": {
...
}
}
Open Heroku.
Connect to git repo.
Press Deploy Btn.