繁体   English   中英

无法将应用程序部署到heroku

[英]Can't deploy application to 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 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登录),将您的公共密钥上传到heroku(heroku keys:add),然后尝试再次推送。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM