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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/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
Unix -bash终端设置heroku时出错_Unix_Heroku_Terminal - Fatal编程技术网

Unix -bash终端设置heroku时出错

Unix -bash终端设置heroku时出错,unix,heroku,terminal,Unix,Heroku,Terminal,试图根据《开始指南》设置Heroku,但我遇到了一个没有这样的文件或目录的问题。是什么导致了这种情况?我对这个-bash错误的经验是,它可能指向错误的空格或字符,或者显然没有文件,但我缺少什么呢 以下是设置中的控制台错误: localhost:local cf$ heroku login Enter your Heroku credentials. Email: heroku@mydomain.org Password (typing will be hidden): Found existi

试图根据《开始指南》设置Heroku,但我遇到了一个
没有这样的文件或目录的问题。是什么导致了这种情况?我对这个
-bash
错误的经验是,它可能指向错误的空格或字符,或者显然没有文件,但我缺少什么呢

以下是设置中的控制台错误:

localhost:local cf$ heroku login
Enter your Heroku credentials.
Email: heroku@mydomain.org
Password (typing will be hidden): 
Found existing public key: /Users/cf/.ssh/id_rsa.pub
Uploading SSH public key /Users/cf/.ssh/id_rsa.pub... done
Enter your Heroku credentials.
Email: heroku@mydomain.org
Password (typing will be hidden): 
Authentication successful.
localhost:local cf$ cd ~/myapp
-bash: cd: /Users/cf/myapp: No such file or directory
帮助指南显示

Could not find an existing public key.
Would you like to generate one? [Yn]
Generating new SSH public key.
Uploading ssh public key /Users/adam/.ssh/id_rsa.pub
而我已经有了SSH密钥:

Found existing public key: /Users/cf/.ssh/id_rsa.pub
Uploading SSH public key /Users/cf/.ssh/id_rsa.pub... done

这是需要调查的事情吗?我还尝试了另一个终端实例,但没有成功。

您应该创建一个名为
myapp
的文件夹。之前:

localhost:local cf$ cd ~/myapp
写:

localhost:local cf$ mkdir ~/myapp
localhost:local cf$ cd ~/myapp
这不是希罗库的问题。您至少需要熟悉Unix。振作起来

~
符号表示“您的主目录”