📌  相关文章
📜  将节点应用程序部署到 heroku - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:33.098000             🧑  作者: Mango

代码示例1
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.