Rails / Ruby要求" @ localhost"部署密码:设置

时间:2015-09-21 21:45:41

标签: ruby-on-rails ruby capistrano

我还是很陌生。我一直试图获得这个软件 正在运行:https://github.com/r888888888/danbooru 但是我坚持部署步骤。尝试部署后,它要求我登录用户" @ localhost",并拒绝我尝试的每个密码。我觉得在" @ localhost"之前应该有一个名字,但我有点迷失。到目前为止,我已经能够谷歌并找出其他所有内容。

这是我所看到的图片:imgur.com/ONp69.png

以及文字:

   danbooru@teemo:~/danbooru$ bundle exec cap development deploy:setup
 [9951bc77] Running /usr/bin/env [ -d ~/.rbenv/versions/2.1.5 ] on localhost
 [9951bc77] Command: [ -d ~/.rbenv/versions/2.1.5 ]
@localhost's password:
@localhost's password:
@localhost's password:
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing on host localhost: Authentication failed for user @localhost
Net::SSH::AuthenticationFailed: Authentication failed for user @localhost
Tasks: TOP => rbenv:validate
(See full trace by running task with --trace)

1 个答案:

答案 0 :(得分:0)

Capistrano实际上会提示您登录无名用户; “localhost”指的是您的计算机。您可以在Github上看到productionstaging部署配置包含Array ( [1] => Array ( [name] => John Smith [quizzes] => Array ( [quizzes] => Array ( [Qz1] => Array ( [easy] => 5 [normal] => 6 [hard] => 7 ) [Qz2] => Array ( [easy] => 3 [normal] => 4 [hard] => 5 ) ) ) ) ) 设置,但未定义in the development config

开发环境通常由程序员使用,以改变代码;如果您尝试部署网站以使其公开,那么您应该修改production configuration的副本以引用用户帐户&您有权访问的服务器,然后运行:user