ruby-on-rails EC2上的ROR部署

mspsb9vt  于 12个月前  发布在  Ruby
关注(0)|答案(1)|浏览(125)

(回溯仅限于导入的任务)上限中止!

Exception while executing on host 53.45.43.233: rvm exit status: 142
rvm stdout: Please login as the user "ubuntu" rather than the user "root".
rvm stderr: Nothing written

Tasks: TOP => rvm:check
(See full trace by running task with --trace)

我正在尝试部署一个ROR项目到EC2,并得到此错误消息。

wfveoks0

wfveoks01#

您应该以拥有代码的用户身份运行RVM。例如Ubuntu
编辑Capistrano部署脚本以使用ubuntu作为用户。您可以通过在deploy.rb文件中设置user变量来实现这一点。
试试这个。没有太多的日志退出可以知道原因。希望这将有助于
例如:

set :user, "server-user-name"

相关问题