gpt4 book ai didi

ruby-on-rails - 执行 "mina setup"时没有任何反应

转载 作者:行者123 更新时间:2023-12-03 16:20:50 25 4
gpt4 key购买 nike

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

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

  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 的事情。 Mina 仍然没有工作。

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...谢谢。

最佳答案

这是一个老问题,但这是为 future 遇到这个问题的任何 Google 员工准备的。我遇到了问题中描述的问题,输入密码后 mina 挂起。环顾 mina git repo 的问题部分将我带到 the fix ,虽然很傻。

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

set :term_mode, nil

关于ruby-on-rails - 执行 "mina setup"时没有任何反应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22606771/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com