Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js heroku正在尝试部署迷你浏览器_Node.js_Heroku - Fatal编程技术网

Node.js heroku正在尝试部署迷你浏览器

Node.js heroku正在尝试部署迷你浏览器,node.js,heroku,Node.js,Heroku,我试图通过github在heroku上部署一个应用程序,每次都会收到这个错误日志 {2019-10-22T04:46:56.976381+00:00 heroku[web.1]:进程已退出,状态为1 2019-10-22T04:46:56.913376+00:00应用程序[web.1]:npm错误!缺少脚本:开始 2019-10-22T04:46:56.923746+00:00应用程序[网站1]: 2019-10-22T04:46:56.924056+00:00应用程序[web.1]:npm E

我试图通过github在heroku上部署一个应用程序,每次都会收到这个错误日志

{2019-10-22T04:46:56.976381+00:00 heroku[web.1]:进程已退出,状态为1 2019-10-22T04:46:56.913376+00:00应用程序[web.1]:npm错误!缺少脚本:开始 2019-10-22T04:46:56.923746+00:00应用程序[网站1]: 2019-10-22T04:46:56.924056+00:00应用程序[web.1]:npm ERR!此运行的完整日志可在以下位置找到: 2019-10-22T04:46:56.924182+00:00应用程序[web.1]:npm ERR!/app/.npm/_logs/2019-10-22T04_46_56_915Z-debug.log 2019-10-22T04:46:57.14468+00:00 heroku[web.1]:状态从开始更改为崩溃 2019-10-22T04:46:57.148344+00:00 heroku[web.1]:状态从崩溃变为启动 2019-10-22T11:57:15.000755+00:00应用程序[web.1]:npm错误!缺少脚本:开始 2019-10-22T11:57:15.010793+00:00应用程序[网站1]: 2019-10-22T11:57:15.014646+00:00应用程序[web.1]:npm ERR!此运行的完整日志可在以下位置找到: 2019-10-22T11:57:15.015382+00:00应用程序[web.1]:npm ERR!/app/.npm/_logs/2019-10-22T11_57_15_002Z-debug.log 2019-10-22T11:57:17.209791+00:00 heroku[路由器]:at=错误代码=H10 desc=“应用程序崩溃”方法=GET path=“/”主机=browserbyfazal.herokuapp.com}>

这是我的package.json文件

{
  "name": "min",
  "productName": "Min",
  "author": "PalmerAL",
  "version": "1.11.1",
  "description": "A fast, minimal browser that protects your privacy",
  "electronVersion": "6.0.2",
  "main": "main.build.js",
  "dependencies": {
    "dexie": "^1.2.0",
    "dragula": "^3.6.2",
    "electron-squirrel-startup": "^1.0.0",
    "mousetrap": "^1.5.3",
    "pdfjs-dist": "2.0.943",
    "string_score": "^0.1.22"
  },
  "devDependencies": {
    "archiver": "^3.0.0",
    "browserify": "^16.2.2",
    "chokidar": "^2.0.4",
    "decomment": "^0.9.0",
    "electron": "^6.0.2",
    "electron-installer-redhat": "^2.0.0",
    "electron-installer-windows": "^1.1.1",
    "electron-packager": "^14.0.4",
    "electron-renderify": "0.0.2",
    "standard": "^7.1.0"
  },
  "optionalDependencies": {
    "electron-installer-debian": "^1.2.0"
  },
  "license": "Apache-2.0",
  "scripts": {
    "test": "node_modules/.bin/standard --verbose js/**/*.js main/*.js",
    "watch": "node ./scripts/watch.js",
    "buildMain": "node ./scripts/buildMain.js",
    "buildBrowser": "node ./scripts/buildBrowser.js",
    "buildPreload": "node ./scripts/buildPreload.js",
    "build": "npm run buildMain && npm run buildBrowser && npm run buildPreload",
    "buildWindows": "npm run build && node ./scripts/buildWindows.js",
    "buildMac": "npm run build && node ./scripts/buildMac.js",
    "buildDebian": "npm run build && node ./scripts/buildDebian.js",
    "buildRedhat": "npm run build && node ./scripts/buildRedhat.js",
    "buildAll": "npm run buildWindows && npm run buildMac && npm run buildDebian && npm run buildRedhat",
    "updateFilters": "node ./ext/filterLists/updateEasylist.js"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/minbrowser/min.git"
  }
}
如果有人能帮助我,我将不胜感激

****新错误代码**** 2019-10-22T21:58:53.757481+00:00 heroku[web.1]:错误R10(启动超时)->web进程在启动后60秒内绑定到$PORT失败 2019-10-22T21:58:53.786108+00:00 heroku[web.1]:使用SIGKILL停止进程 2019-10-22T21:58:53.913021+00:00 heroku[web.1]:进程退出,状态为137 2019-10-22T21:58:53.966524+00:00 heroku[web.1]:状态从开始更改为崩溃 2019-10-22T21:58:54.33422+00:00 heroku[路由器]:at=error code=H20 desc=“App boot timeout”method=GET path=“/”host=browserbayfazal.herokuapp.com request_id=e5037711-4e60-4bf6-921c-8edf6e2bff03 fwd=“71.201.83.129”dyno=connect=service=status=503 bytes=protocol=https 2019-10-22T21:58:55.387616+00:00 heroku[路由器]:at=错误代码=H10 desc=“应用程序崩溃”方法=获取路径=“/”主机=browserbyfazal.herokuapp.com请求id=256dfa93-0362-487f-b809-f9d476f5524c fwd=“71.201.83.129”dyno=connect=service=status=503字节=protocol=https
2019-10-22T21:58:56.692461+00:00 heroku[路由器]:at=错误代码=H10 desc=“应用程序崩溃”方法=获取路径=“/favicon.ico”主机=browserbayfazal.herokuapp.com请求\u id=c118698d-3fd7-4cec-86b7-CBF51BF3CC7 fwd=“71.201.83.129”dyno=connect=service=service=status=503字节=https请在您的程序包中添加启动脚本json.json

请参阅

在package.json中的脚本中尝试添加

"scripts": {
        "start":"npm start",
        ... //Ur previous scripts
    },

这并不意味着酷,我非常感激,而且这整件事对我来说都是新的,如果简单就好了。上面说缺少开始脚本。您是否在package.json文件中添加了启动脚本?我该怎么做?我的意思是我以前尝试过,但找不到我的入口点在package.json文件“scripts”中添加这两个脚本:{“start”:“node.js”},引擎:{“node”:“},@Osama我已经这样做了,没有改变,我已经按照ragu说的做了,现在它开始加载一分钟,崩溃,显示错误,我把它放在了帖子的底部。请帮忙!谢谢你的建议。我已经按照你说的做了,现在我可以加载到我的应用程序中,但过一段时间就会崩溃,并在日志中给出一个错误。请检查我文章的底部代码是否有错误。谢谢你的代码和任何帮助。我可以看出$PORT中存在一些差异,这就是它失败的原因。我可以知道你用的是哪个端口吗?