尝试根据this入门指南设置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
这是需要研究的吗?我也尝试过终端的不同实例,但是没有用。
答案 0 :(得分:1)
你应该创建一个名为myapp
的文件夹。之前:
localhost:local cf$ cd ~/myapp
写:
localhost:local cf$ mkdir ~/myapp
localhost:local cf$ cd ~/myapp
这不是Heroku问题。你需要最小的Unix熟悉度....振作起来!
~
符号表示“您的主目录”。