0
我有一個菜鳥問題,我是在rails上部署服務器的新手。目前的設置是Nginx和獨角獸,Rails 4.0.0和Ruby 2.0.0-p247。cap部署安裝錯誤 - rvm-shell沒有目錄
我嘗試使用capistrano將rails應用程序部署到遠程VPS時遇到問題。我跟着RailsCast http://railscasts.com/episodes/335-deploying-to-a-vps並準備好了一切。當我這樣做:
cap deploy:setup
以下錯誤發生:
* executing "mkdir -p /var/www/blog /var/www/blog/releases /var/www/blog/shared /var/www/blog/shared/system /var/www/blog/shared/log /var/www/blog/shared/pids"
servers: ["123.123.123.123"]
[123.123.123.123] executing command
** [out :: 123.123.123.123] env:
** [out :: 123.123.123.123] /root/.rvm/bin/rvm-shell
** [out :: 123.123.123.123] : No such file or directory
....
failed: "env PATH=/usr/local/rvm/bin rvm_path=/usr/local/rvm/bin rvm_path=$HOME/.rvm $HOME/.rvm/bin/rvm-shell 'default' -c 'mkdir -p /var/www/blog /var/www/blog/releases /var/www/blog/shared /var/www/blog/shared/system /var/www/blog/shared/log /var/www/blog/shared/pids'" on 123.123.123.123
當我which rvm-shell
檢查,我得到了/usr/local/rvm/bin/rvm-shell
。我不知道爲什麼腳本會嘗試在/root/.rvm/bin/rvm-shell
中找到..但我不知道如何讓部署腳本找到rvm-shell ..
需要幫助!謝謝!