无法在服务器上部署我的应用程序

时间:2015-07-23 05:20:38

标签: ruby-on-rails capistrano

这是输出(错误行):

INFO [56c27871] Running /usr/bin/env mkdir -p /home/demas/stackify-node`/shared /home/demas/stackify-node`/releases as demas@ubuntuservices.cloudapp.net
DEBUG [56c27871] Command: /usr/bin/env mkdir -p /home/demas/stackify-node`/shared /home/demas/stackify-node`/releases
DEBUG [56c27871]    bash: /shared: No such file or directory
INFO [56c27871] Finished in 0.142 seconds with exit status 0 (successful).
DEBUG [dcbc8031] Running /usr/bin/env [ -f /home/demas/stackify-node`/current/REVISION ] as demas@ubuntuservices.cloudapp.net
DEBUG [dcbc8031] Command: [ -f /home/demas/stackify-node`/current/REVISION ]
DEBUG [dcbc8031]    bash: -c: line 0: unexpected EOF while looking for matching ``'
DEBUG [dcbc8031]    bash: -c: line 1: syntax error: unexpected end of file
DEBUG [dcbc8031] Finished in 0.132 seconds with exit status 1 (failed).
DEBUG [e46d75ae] Running /usr/bin/env [ -f /home/demas/stackify-node`/repo/HEAD ] as demas@ubuntuservices.cloudapp.net
DEBUG [e46d75ae] Command: [ -f /home/demas/stackify-node`/repo/HEAD ]
DEBUG [e46d75ae]    bash: -c: line 0: unexpected EOF while looking for matching ``'
DEBUG [e46d75ae]    bash: -c: line 1: syntax error: unexpected end of file
DEBUG [e46d75ae] Finished in 0.133 seconds with exit status 1 (failed).
DEBUG [a70addc0] Running /usr/bin/env if test ! -d /home/demas/stackify-node`; then echo "Directory does not exist '/home/demas/stackify-node`'" 1>&2; false; fi as demas@ubuntuservices.cloudapp.net
DEBUG [a70addc0] Command: if test ! -d /home/demas/stackify-node`; then echo "Directory does not exist '/home/demas/stackify-node`'" 1>&2; false; fi
DEBUG [a70addc0]    bash: -c: line 0: unexpected EOF while looking for matching `''
DEBUG [a70addc0]    bash: -c: line 1: syntax error: unexpected end of file

以下是完整输出:blog link

我该如何解决?

更新

这是我的deploy.rb:http://pastebin.com/XE2ApRvz

1 个答案:

答案 0 :(得分:1)

鉴于信息有限,您很可能会有如下行:

set :deploy_to, "/home/demas/stackify-node`"

删除最后的`。

如果这不是问题,请分享您的deploy.rbdeploy/production.rb文件,以便我们查看您的Capistrano配置。