2

我正在尝试设置 Mina 来部署我的 Rails 应用程序。不幸的是,当运行mina setupor时mina deploy,我得到密码提示,然后什么也没有发生。

我可以使用给定的用户和密码手动 ssh,所以这应该不是问题。但我不知道,米娜卡在哪里:

  josh@macbuech:~/Documents/Work/MuheimWebdesign/base (features/deployment *)$ mina deploy --verbose
  base@josh.ch's password: 


  -----> Mina: SIGINT received.
         Elapsed time: 61.00 seconds

有趣的是,昨天它突然能够连接(我猜是十几个重试中的一个):

josh@macbuech:~/Documents/Work/MuheimWebdesign/base (features/deployment *)$ mina deploy --verbose
base@josh.ch's password: 
       stdin: is not a tty  
       jailshell: line 3: cd: /var/www/base.josh.ch: No such file or directory
 !     ERROR: not set up.
       The path '/var/www/base.josh.ch' is not accessible on the server. 
       You may need to run 'mina setup' first. 

 !     Command failed.
       Failed with status 15

然后,我无法再连接到我的服务器(既不使用 mina 也不使用普通 ssh)。我不得不致电支持,他们为我做了一些重新启用 ssh 的操作。米娜还是不行。

config/deploy.rb中,我只添加set :user ...和更改了:domain:deploy_to:repository

set :domain, 'josh.ch'
set :user, 'base'
set :deploy_to, "/var/www/base.josh.ch"
set :repository, 'git://jmuheim/base'
set :branch, 'master'

任何的想法?我宁愿不切换回 Capistrano ......谢谢。

4

3 回答 3

8

这是一个古老的问题,但这是为任何偶然发现此问题的未来 Google 员工准备的。我遇到了问题中描述的问题,输入密码后 mina 挂起。在 mina git repo 的问题部分环顾四周尽管这很愚蠢。

在您的 deploy.rb 文件中放置以下设置:

set :term_mode, nil
于 2015-03-04T15:29:25.950 回答
0

您是否尝试过运行:

mina init

安装宝石后?

你能展示你的 deploy.rb 吗?

于 2014-03-24T14:24:20.947 回答
0

我对密码验证没有任何运气。但是使用公钥 SSH 身份验证,它工作正常。

如何:https ://www.debian-administration.org/article/530/SSH_with_authentication_key_instead_of_password

于 2014-03-27T13:17:45.470 回答