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_Heroku_Heroku Toolbelt - Fatal编程技术网

未能将应用程序部署到heroku

未能将应用程序部署到heroku,heroku,heroku-toolbelt,Heroku,Heroku Toolbelt,我是赫罗库的新手。我试图通过以下步骤将Django应用程序部署到heroku 已安装vartualenv 通过pip安装Django gunicron 安装heroku工具带 创建了一个空git git添加 git提交-m“首次提交” ssh密钥生成 赫罗库创造 heroku密钥:添加 git推送heroku主机 这是一个错误 (venv)han@HEEL:~/Desktop/projects/ossko$ heroku keys:add Found existing public key: /

我是赫罗库的新手。我试图通过以下步骤将Django应用程序部署到heroku

  • 已安装vartualenv
  • 通过pip安装Django gunicron
  • 安装heroku工具带
  • 创建了一个空git
  • git添加
  • git提交-m“首次提交”
  • ssh密钥生成
  • 赫罗库创造
  • heroku密钥:添加
  • git推送heroku主机
  • 这是一个错误

    (venv)han@HEEL:~/Desktop/projects/ossko$ heroku keys:add
    Found existing public key: /home/han/.ssh/id_rsa.pub
    Uploading SSH public key /home/han/.ssh/id_rsa.pub... done
    (venv)han@HEEL:~/Desktop/projects/ossko$ git push heroku master
    ssh: connect to host heroku.com port 22: Connection timed out
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    
    我已经按照heroku帮助站点的每个步骤进行了操作

    请帮我修正这个错误

    我有Ubuntu 13.4 64位操作系统

    更新:以下是git remote-v的结果:

    $git远程-v
    赫罗库git@heroku.com:infinite-mesa-xxx.git(fetch)
    赫罗库git@heroku.com:infinite-mesa-xxx.git(推送)


    尝试运行
    git remote-v
    。它会给你不止一个遥控器吗

    您的应用程序名称git@heroku.com:您的_app_name.git(fetch)
    您的应用程序名称git@heroku.com:您的应用程序名称.git(推送)

    如果远程站点的名称不是“heroku”,则需要指定推送到该站点的路径。例如,如果您的遥控器名为
    ossko
    ,请尝试以下操作

    git推送ossko主机


    如果您有多个heroku应用程序,则远程站点通常会有不同的名称-您可以为每个应用程序使用不同的名称。

    好的,我刚刚解决了这个问题,这个问题与添加ssh密钥有关。 因此,heroku部署的正确命令是

    nihan@heel:~$ heroku login
    Enter your Heroku credentials.
    Email: debashis.dip@gmail.com
    Password (typing will be hidden): 
    Authentication successful.
    nihan@heel:~$ cd dev/flask-app
    nihan@heel:~/dev/flask-app$ heroku keys:clear
    Removing all SSH keys... done
    nihan@heel:~/dev/flask-app$ heroku keys:add
    Found existing public key: /home/nihan/.ssh/id_rsa.pub
    Uploading SSH public key /home/nihan/.ssh/id_rsa.pub... done
    nihan@heel:~/dev/flask-app$ ssh-add ~/.ssh/id_rsa   <---- This was the missing key
    Enter passphrase for /home/nihan/.ssh/id_rsa: 
    Identity added: /home/nihan/.ssh/id_rsa (/home/nihan/.ssh/id_rsa)
    nihan@heel:~/dev/flask-app$ git push heroku master
    
    nihan@heel:~$heroku登录
    输入您的Heroku凭据。
    电子邮件:debashis。dip@gmail.com
    密码(将隐藏键入):
    身份验证成功。
    nihan@heel:~$cd-dev/flask应用程序
    nihan@heel:~/dev/flask应用程序$heroku密钥:清除
    正在删除所有SSH密钥。。。完成
    nihan@heel:~/dev/flask应用程序$heroku密钥:添加
    找到现有公钥:/home/nihan/.ssh/id\u rsa.pub
    正在上载SSH公钥/home/nihan/.SSH/id\u rsa.pub。。。完成
    
    nihan@heel:~/dev/flask app$ssh add~/.ssh/id\u rsa(venv)han@HEEL:~/Desktop/projects/ossko$git remote-v herokugit@heroku.com:infinite-mesa-xxx.git(fetch)herokugit@heroku.com:infinite-mesa-xxx.git(push)这是git remote的结果-你可能在防火墙后面阻止端口22吗?我不知道,如何检查?好吧,我可以推它。。。