0

尝试根据入门指南设置 Heroku,但我遇到了no such file or directory. 是什么导致了这种情况?我对这个-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

这是需要调查的事情吗?我也尝试过在终端的不同实例中,但没有奏效。

4

1 回答 1

1

您应该创建一个名为myapp. 前:

localhost:local cf$ cd ~/myapp

写:

localhost:local cf$ mkdir ~/myapp
localhost:local cf$ cd ~/myapp

这不是 Heroku 的问题。您需要最少的 Unix 熟悉度...... 开心点!

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

于 2012-08-20T12:57:03.143 回答