0

我在部署时遇到错误,我不知道要放在这里的代码是什么,

错误:

shared/system /home/ubuntu/apps/nabtat/shared/log /home/ubuntu/apps/nabtat/shared/pids"
servers: ["ec2-54-200-226-110.us-west-2.compute.amazonaws.com"]
[ec2-54-200-226-110.us-west-2.compute.amazonaws.com] executing command
** [out :: ec2-54-200-226-110.us-west-2.compute.amazonaws.com] default: line 20: server:  command not found
** [out :: ec2-54-200-226-110.us-west-2.compute.amazonaws.com] default: line 21: listen: command not found
** [out :: ec2-54-200-226-110.us-west-2.compute.amazonaws.com] default: line 22: listen: command not found
** [out :: ec2-54-200-226-110.us-west-2.compute.amazonaws.com] default: line 24: root: command not found
** [out :: ec2-54-200-226-110.us-west-2.compute.amazonaws.com] default: line 25: index: command not found
** [out :: ec2-54-200-226-110.us-west-2.compute.amazonaws.com] default: line 28: server_name: command not found
** [out :: ec2-54-200-226-110.us-west-2.compute.amazonaws.com] default: line 30: location: command not found
** [out :: ec2-54-200-226-110.us-west-2.compute.amazonaws.com] default: line 33: try_files: command not found
** [out :: ec2-54-200-226-110.us-west-2.compute.amazonaws.com] default: line 36: syntax error near unexpected token `}'
** [out :: ec2-54-200-226-110.us-west-2.compute.amazonaws.com] default: line 36: `  }'
command finished in 1371ms
failed: "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell 'default' -c 'mkdir -p /home/ubuntu/apps/nabtat /home/ubuntu/apps/nabtat/releases /home/ubuntu/apps/nabtat/shared /home/ubuntu/apps/nabtat/shared/system /home/ubuntu/apps/nabtat/shared/log /home/ubuntu/apps/nabtat/shared/pids'" on ec2-54-200-226-110.us-west-2.compute.amazonaws.com

那些显示错误的词在我的 nginx.conf 文件中。

4

1 回答 1

0

没有什么可以指出具体问题,但试试这个愚蠢的事情:

run "mkdir -p Whatever/paths/you/want/created", :shell => :sh
于 2013-11-15T10:57:09.010 回答