Ruby on rails Can';t将应用程序部署到heroku

Ruby on rails Can';t将应用程序部署到heroku,ruby-on-rails,windows,heroku,Ruby On Rails,Windows,Heroku,好人,请帮助。为什么我的文件没有在命令“git add”后添加?我无法推送文件,我得到错误: $ git push heroku master Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the list of known hosts. Counting objects: 2, done. Writing o

好人,请帮助。为什么我的文件没有在命令“git add”后添加?我无法推送文件,我得到错误:

       $ git push heroku master
         Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the
        list of known hosts.
        Counting objects: 2, done.
        Writing objects: 100% (2/2), 200 bytes, done.
        Total 2 (delta 0), reused 0 (delta 0)
        -----> Heroku receiving push
        !     Heroku push rejected, no Cedar-supported app detected

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

或者为我推荐另一台Windows上的Rails服务器。

您的git remote正在使用ssh协议


首先,您需要创建一个ssh密钥对(ssh-keygen),然后登录到heroku(heroku-login),将您的公钥上载到heroku(heroku-keys:add),然后再次尝试推送。

谢谢。还有一个问题:如果它没有添加任何内容,我如何推动?我应该删除历史记录之类的?对不起,我很担心。。。重复:“…添加任何内容”“git add”命令与您收到的错误无关。“git add.”将始终添加您创建的任何新文件,但在中筛选的文件除外。git忽略如果您执行了“git add.”并成功推送,但在刷新时仍看不到任何效果,则可能必须使用“heroku restart”重新启动服务器