簡體   English   中英

我的 heroku 中有 node.js 應用程序部署問題

[英]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 應用程序

此視頻是在 heroku 上部署 nodejs 應用程序的示例

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM