Heroku:将前端部署到 Heroku
我需要将我的前端文件部署到 Heroku 以及如何将其与后端合并。我一直将前端和后端文件分开构建项目。 我的后端目前部署到 Heroku。 https://git.heroku.com/hamsterwarz3000.git
如何部署我的前端存储库这样它就可以上线 Heroku 了吗? 我一直在尝试推送(git push Heroku),但收到此错误消息:
块引用[拒绝] main ->主要(首先获取) 错误:无法将一些参考推送到“https://git.heroku.com/hamsterwarz3000.git” 提示:更新被拒绝,因为远程包含您所做的工作 提示:本地没有。这通常是由另一个存储库推送引起的 提示:给同一个参考。您可能需要首先集成远程更改 提示:(例如,“git pull ...”)再次推送之前。 提示:有关详细信息,请参阅“git push --help”中的“有关快进的注释”
我的前端文件也有它自己的存储库。 存储库前端
I need to deploy my frontend files to Heroku and some how merge it with Backend. I've been having my frontend and backend files separated building the project.
My backend is currently deployed to Heroku. https://git.heroku.com/hamsterwarz3000.git
How can I deploy my Frontend repository so that it can go live Heroku?
I been trying to push (git push Heroku ) but I 'm getting this error message:
Blockquote [rejected] main -> main (fetch first)
error: failed to push some refs to 'https://git.heroku.com/hamsterwarz3000.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for detail
My frontend files also have it's own repository.
Repository Frontend
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论