Reactjs 项目未在Heroku中推送

Reactjs 项目未在Heroku中推送,reactjs,git,heroku,Reactjs,Git,Heroku,所以我想在Heroku推动我项目的所有新变化。但是,所有的更改都会直接推送到我自己的存储库,而不是Heroku 我明白了 git push heroku production:master Everything up-to-date 使用远程-v heroku git@github.com:theo82/expensify-react-app.git (fetch) heroku git@github.com:theo82/expensify-react-app.git (push) or

所以我想在Heroku推动我项目的所有新变化。但是,所有的更改都会直接推送到我自己的存储库,而不是Heroku

我明白了

git push heroku production:master
Everything up-to-date
使用远程-v

heroku  git@github.com:theo82/expensify-react-app.git (fetch)
heroku  git@github.com:theo82/expensify-react-app.git (push)
origin  git@github.com:theo82/expensify-react-app.git (fetch)
origin  git@github.com:theo82/expensify-react-app.git (push)
我在Heroku的git中的Realease是

v10  Set FIREBASE_API_KEY, FIREBASE_AUTH_DOMAIN, FIREBASE_DATABASE_URL, FIREBASE_PROJECT_ID, FIREBA…  email@gmail.com  2020/06/04 08:56:20 +0300 (~ 23m ago)
v9   Remove KEY config vars                                                                           email@gmail.com  2020/06/04 08:52:11 +0300 (~ 27m ago)
v8   Set KEY config vars                                                                              email@gmail.com  2020/06/04 08:45:03 +0300 (~ 34m ago)
v7   Deploy 3284670f                                                                                  email@gmail.com  2020/05/28 08:01:17 +0300
v6   Deploy 8a0c21d0                                                                                  email@gmail.com  2020/05/27 19:36:41 +0300
v5   Deploy b128207e                                                                                  email@gmail.com  2020/05/27 18:01:10 +0300
v4   Deploy 21c22fda                                                                                  email@gmail.com  2020/05/25 19:26:36 +0300
v3   Deploy 36ba978f                                                                                  email@gmail.com  2020/05/22 09:39:14 +0300
v2   Enable Logplex                                                                                   email@gmail.com  2020/05/22 08:58:26 +0300
v1   Initial release                                                                                  email@gmail.com  2020/05/22 08:58:26 +0300
当然,我把事情搞砸了,但我不知道在哪里。我尝试了发布的解决方案,但仍然有相同的问题。我怎样才能修好它

谢谢,
Theo.

您的heroku git remote配置错误

$ git remote -v
heroku  git@github.com:theo82/expensify-react-app.git (fetch)
heroku  git@github.com:theo82/expensify-react-app.git (push)
origin  git@github.com:theo82/expensify-react-app.git (fetch)
origin  git@github.com:theo82/expensify-react-app.git (push)
它们都指向您的GitHub。你需要修理Heroku遥控器。首先卸下Heroku遥控器

$ git remote rm heroku
$ git remote -v
origin  git@github.com:theo82/expensify-react-app.git (fetch)
origin  git@github.com:theo82/expensify-react-app.git (push)
确定Heroku遥控器的链接

$ git remote add heroku https://git.heroku.com/yourappname.git
$ git remote -v
heroku  https://git.heroku.com/yourappname.git (fetch)
heroku  https://git.heroku.com/yourappname.git (push)
origin  git@github.com:theo82/expensify-react-app.git (fetch)
origin  git@github.com:theo82/expensify-react-app.git (push)

添加Heroku遥控器

$ git remote add heroku https://git.heroku.com/yourappname.git
$ git remote -v
heroku  https://git.heroku.com/yourappname.git (fetch)
heroku  https://git.heroku.com/yourappname.git (push)
origin  git@github.com:theo82/expensify-react-app.git (fetch)
origin  git@github.com:theo82/expensify-react-app.git (push)
使用git Push heroku master推送