Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku 永久添加了IP地址的RSA主机密钥_Heroku - Fatal编程技术网

Heroku 永久添加了IP地址的RSA主机密钥

Heroku 永久添加了IP地址的RSA主机密钥,heroku,Heroku,各位, 我运行这个命令时出错:“git push heroku master”。错误日志显示以下内容: $ git push heroku master Warning: Permanently added the RSA host key for IP address '50.19.85.156' to the list of known hosts. Counting objects: 3, done. Writing objects: 100% (3/3), 209 bytes, done

各位,

我运行这个命令时出错:“git push heroku master”。错误日志显示以下内容:

$ git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.156' to the list of known hosts.
Counting objects: 3, done.
Writing objects: 100% (3/3), 209 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)

-----> Heroku receiving push
 !     Heroku push rejected, no Rails or Rack app detected

To git@heroku.com:simple-earth-536.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@app_name.git'

你知道这是什么原因吗?我欢迎任何建议,谢谢大家。

这意味着您不在rails应用程序中,例如您不在正确的目录中

rails myapp
cd myapp
确保您确实在应用程序目录中

rails myapp
cd myapp
这是您应该经历的流程”


NP,如果您需要更多帮助,请告诉我。当我在本地存储库中修复代码时,如何将应用程序更新到heroku?
git push heroku
git push heroku master
“git push heroku master”此命令工作正常,此“git push heroku”在heroku的自定义页面上向我发送一些警告和错误消息,该消息如下“您正在查找的页面不存在。您可能键入了错误的地址,或者页面可能已移动。”
heroku create
git push heroku
,关于此命令,我最后还需要添加“master”关键字。请关注heroku的这篇文章