为什么我不能“heroku git:clone”并部署我的 Strapi 应用程序?
我刚刚在 Heroku 上部署了一个全新的 Strapi 应用程序,并亲眼目睹了它的上线。但是,我尝试通过执行以下操作来克隆 Heroku CLI 存储库:
$ heroku login
$ heroku git:clone -a Mentorsbackend
。 //项目名称$ cd Mentorsbackend
部署:
$ git add .
$ git commit -am "make it better"
$ git push heroku master
但是当一切完成后,我收到此消息:
heroku git:clone -a mentorsbackend Cloning into 'mentorsbackend'...
warning: You appear to have cloned an empty repository.
问题是存储库应包含我部署的 Strapi 项目文件。我仍然可以在这里看到它: https://mentorsbackend.herokuapp.com/
为什么我不能似乎能够克隆,这样我就可以在本地处理它 - 任何或所有回复将非常感激。
谢谢
I just deployed a brand new Strapi app on Heroku, and have seen it live. However, I tried to clone the Heroku CLI repository by doing the following:
$ heroku login
$ heroku git:clone -a mentorsbackend
. //project name$ cd mentorsbackend
deploying:
$ git add .
$ git commit -am "make it better"
$ git push heroku master
but when its all done I got this message:
heroku git:clone -a mentorsbackend Cloning into 'mentorsbackend'...
warning: You appear to have cloned an empty repository.
The issue is that the repo should contain my deployed Strapi project files in it. I can still see it live here: https://mentorsbackend.herokuapp.com/
Why can't I seem to be able to clone so I can work on it locally - Any or all responses will be very much appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个反模式:
为什么你不能使用已有的本地副本,或者从 GitHub / GitLab / 无论你的原始服务器是什么进行克隆?
话虽如此,如果您通过 git push 进行部署,您应该能够克隆源代码。您确定没有通过 GitHub 集成进行部署吗?还是 Docker?这些部署选项不会通过 Heroku 的 Git 存储库。
This is an antipattern:
Why can't you work from the local copy you already have, or clone from GitHub / GitLab / whatever your origin server is?
Having said that, if you deployed via
git push
you should be able to clone your source code. Are you sure you didn't deploy via GitHub integration? Or Docker? Those deployment options don't go through Heroku's Git repository.