[英]I am having node.js app deploy problem in my heroku
无法在 master 分支中部署我的 heroku 应用程序。 我也尝试在功能分支中部署,但它不起作用。 在 nodejs 中部署我的 heroku 应用程序给我带来了很多错误。 在我的heroku 中,这条消息显示我构建失败:
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/still-inlet-25878.git
-----> App not compatible with buildpack: https://github.com/bundler/heroku-buildpack-bundler2
More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
! Push failed
另一个显示示例:
git push heroku master
Total 0 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/nodejs.tgz
remote:
remote: ! ERROR: Application not supported by 'heroku/nodejs' buildpack
remote: !
remote: ! The 'heroku/nodejs' buildpack is set on this application, but was
remote: ! unable to detect a Node.js codebase.
remote: !
remote: ! A Node.js app on Heroku requires a 'package.json' at the root of
remote: ! the directory structure.
remote: !
remote: ! If you are trying to deploy a Node.js application, ensure that this
remote: ! file is present at the top level directory. This directory has the
remote: ! following files:
remote: !
remote: ! README.md
remote: ! weather/
remote: ! web-server/
remote: !
remote: ! If you are trying to deploy an application written in another
remote: ! language, you need to change the list of buildpacks set on your
remote: ! Heroku app using the 'heroku buildpacks' command.
remote: !
remote: ! For more information, refer to the following documentation:
remote: ! https://devcenter.heroku.com/articles/buildpacks
remote: ! https://devcenter.heroku.com/articles/nodejs-support#activation
remote:
remote:
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to still-inlet-25878.
remote:
To https://git.heroku.com/still-inlet-25878.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/still-inlet-25878.git'
遵循这些将帮助您解决在 heroku 上部署时的所有问题。 在本文中,您将找到所有详细信息在 heroku 上部署 nodejs 应用程序
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.