如何推送到 heroku 分叉项目?

How to push to a heroku forked project?

我有一个应用程序:betsmart_us 我做了一个 heroku betsmart_eu --region eu 创建了一个新的分叉 heroku 应用程序:betsmart_eu.

我想不出一种方法来将更改或 运行 rake 任务从我的终端推送到新的分叉 heroku 应用程序。我如何检索新创建的应用程序的源代码,以便我可以从我的终端推送和测试 rake 任务。

我试图做一个 heroku clone 但分叉的应用程序似乎是一个空的回购。然而,分叉的应用程序在 heroku 上运行良好。

对此有一些了解将不胜感激。非常感谢!

安托万。

我想这就是你要问的。您可以将 --app 附加到 heroku 中的命令,它会将其指向您正在尝试 运行 命令的正确应用程序。

--app betmart_us
--app betsmart_eu

https://devcenter.heroku.com/articles/fork-app

Forking your application doesn’t automatically create a new git remote in your current project. To deploy to targetapp you will need to establish the git remote yourself. Use heroku info to retrieve the Git URL of the new application and the set it manually.

基本上,您需要添加一个 git 遥控器:

git remote add forked git@heroku.com:targetapp.git