我想通过heroku部署一个子目录,并且对这个部署过程来说还很陌生。
目标:我要部署子目录:
https://github.com/nevinm/Node-Course-Udemy/tree/master/Web%20server
通过Heroku。 此外,将来我还会有更多子目录。
我的操作系统: Windows 10 64位。
我所做的事情:
我遇到以下错误:
git push heroku master
Enumerating objects: 35, done.
Counting objects: 100% (35/35), done.
Delta compression using up to 4 threads
Compressing objects: 100% (30/30), done.
Writing objects: 100% (35/35), 13.46 KiB | 1.92 MiB/s, done.
Total 35 (delta 6), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> App not compatible with buildpack: https://github.com/nevinm/Node-Course-Udemy
remote: bash: /app/tmp/buildpacks/23b110e8ae230449be3a7da268cad0a380c973b82928c5d60955d6a1cd7414cb8e357bc5527c3219edddd9a5459de8037b04379ece013ee2b6ae092ec35895ad/bin/detect: No such file or directory
remote:
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to quiet-sierra-88561.
remote:
To https://git.heroku.com/quiet-sierra-88561.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/quiet-sierra-88561.git'
在我已经执行的步骤中,我可能错了。请纠正我。
还有一个后续问题,我是否还需要在根目录中包含package.json?我需要在哪里拥有“ Procfile”?
PS:我需要在同一GIT存储库中有多个子目录HEROKU deplyoment。
谢谢。