没有Web进程运行代码H14 Heroku Reactjs

时间:2018-08-30 15:09:29

标签: reactjs heroku

我正在尝试部署我的应用程序,部署已经完成并且一切都很好,但是当我转到该应用程序时,它会向我答复此错误:

enter image description here

在控制台上:

2018-08-30T14:59:46.994952+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=gasdrop.herokuapp.com request_id=572f76ea-a5ab-4d0d-bff1-11156c7aace3 fwd="191.54.110.242" dyno= connect= service= status=503 bytes= protocol=https

构建日志

-----> Node.js app detected
-----> Creating runtime environment

       NPM_CONFIG_LOGLEVEL=error
       NODE_VERBOSE=false
       NODE_ENV=production
       NODE_MODULES_CACHE=true
-----> Installing binaries
       engines.node (package.json):  unspecified
       engines.npm (package.json):   unspecified (use default)

       Resolving node version 8.x...
       Downloading and installing node 8.11.4...
       Using default npm version: 5.6.0
-----> Restoring cache
       Loading 2 from cacheDirectories (default):
       - node_modules
       - bower_components (not cached - skipping)
-----> Building dependencies
       Installing node modules (package.json + package-lock)
       up to date in 14.598s
-----> Caching build
       Clearing previous node cache
       Saving 2 cacheDirectories (default):
       - node_modules
       - bower_components (nothing to cache)
-----> Pruning devDependencies
       Skipping because npm 5.6.0 sometimes fails when running 'npm prune' due to a known issue
       https://github.com/npm/npm/issues/19356

       You can silence this warning by updating to at least npm 5.7.1 in your package.json
       https://devcenter.heroku.com/articles/nodejs-support#specifying-an-npm-version
-----> Build succeeded!
-----> Discovering process types
       Procfile declares types     -> (none)
       Default types for buildpack -> web
-----> Compressing...
       Done: 57.4M
-----> Launching...
       Released v6
       https://gasdrop.herokuapp.com/ deployed to Heroku

我读到您必须运行此命令,但我没有成功

heroku ps:scale web=1

应该怎么做?

0 个答案:

没有答案