尝试部署Heroku应用程序时出现应用程序错误

时间:2020-05-23 14:16:30

标签: heroku deployment

在heroku上部署应用程序,构建成功,但是当我尝试打开它时,出现“应用程序错误”,并告诉我检查日志。

日志:

-----> Node.js app detected

-----> Creating runtime environment

       NPM_CONFIG_LOGLEVEL=error
       NODE_ENV=production
       NODE_MODULES_CACHE=true
       NODE_VERBOSE=false

-----> Installing binaries
       engines.node (package.json):  unspecified
       engines.npm (package.json):   unspecified (use default)

       Resolving node version 12.x...
       Downloading and installing node 12.16.3...
       Using default npm version: 6.14.4

-----> Restoring cache
       Cached directories were not restored due to a change in version of node, npm, yarn or stack
       Module installation may take longer for this build

-----> Installing dependencies
       Installing node modules
       added 0 packages in 0.033s

-----> Build

-----> Caching build
       - node_modules (nothing to cache)

-----> Pruning devDependencies
       up to date in 0.219s
       found 0 vulnerabilities


-----> Build succeeded!
-----> Discovering process types
       Procfile declares types     -> (none)
       Default types for buildpack -> web
-----> Compressing...
       Done: 22.2M
-----> Launching...
       Released v6
       https://cbcv.herokuapp.com/ deployed to Heroku

关于我想念的东西有什么想法吗?

1 个答案:

答案 0 :(得分:0)

请在构建成功后提供日志。您已在部署应用程序时提供了日志。要查看最近的日志,可以使用heroku logs --tail