2012-03-19 34 views
0

我是capistrano的新手,我將在soode Ubuntu 10.04中清理64位的應用程序。在Ubuntu 10.04中運行capistrano時出錯64位

我試圖讓我的Capistrano的寶石部署,但我得到的錯誤:

[000.00.000.00] executing command 
[000.00.000.00] rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell 'default' -c 'cd /home/user/project/current; git fetch origin; git reset --hard master' 
** [out :: 109.74.195.41] bash: /home/user/.rvm/bin/rvm-shell: No such file or directory 
command finished in 330ms 
failed: "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell 'default' -c 'cd /home/user/project/current; git fetch origin; git reset --hard master'" on 000.00.000.00 
[email protected]:~/Desktop/project$ 

這是我deploy.rb

# RVM 
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) 
require "rvm/capistrano" 
set :rvm_ruby_string, 'default' 
set :rvm_type, :user 

# Bundler 

require "bundler/capistrano" 

# General 

set :application, "project" 
set :user, "user" 

set :deploy_to, "/home/user/project" 
set :deploy_via, :copy 

set :use_sudo, false 

# Git 

set :scm, :git 
set :repository, "~/project/.git" 
set :branch, "master" 

# VPS 

role :web, "my vps ip" 
role :app, "my vps ip" 
role :db, "my vps ip", :primary => true 

set :server, :nginx 
require 'capistrano_recipes' 

我已經安裝了nginx的我想用nginx來使用獨角獸。

我在遠程vps中創建了一個在home/user/project中創建的目錄,以便在那裏部署我的應用程序。在VPS遠程主機

我的紅寶石版本是:

ruby 1.9.2p318 (2012-02-14 revision 34678) [x86_64-linux] 

誰能幫助揭示了什麼我做錯了一些輕?

回答

0

RVM(頭部或1.11.0)現在支持任務安裝RVM/Ruby的,我有一篇文章描述這一過程http://niczsoft.com/2012/03/fast-deployment-using-capistrano-rvm-and-more/

你可以在這裏找到我的deploy.rb:https://github.com/mpapis/ad/blob/master/config/deploy.rb

而且這裏是RVM網站描述:http://beginrescueend.com/integration/capistrano/

另外值得一提的是新的文件格式,無需信任:http://beginrescueend.com/workflow/projects/#ruby-versions

+0

謝謝你的有效期爲我:d – hyperrjas 2012-03-22 12:02:14

相關問題