2012-03-19 18 views
0

私はcapistranoの初心者ですので、SO ubuntu 10.04の64ビットでlinodeでアプリケーションをデプロイします。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$ 

これは私がnginxのと私がインストールされている私の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でunicornを使いたい。

リモートのvpsにhome/user/projectというディレクトリを作成してそこにアプリケーションをデプロイしました。

VPSリモートホストでの私のRubyのバージョンは次のとおりです。

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

誰も私が間違ってやっているものにいくつかの光を当てる助けることができますか?

答えて

0

RVM(ヘッドまたは1.11.0)は、現在RVM /ルビーをインストールするためのタスクをサポートし、私はプロセスに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/

言及する価値が信頼必要としない新しいファイルフォーマットされます:D:http://beginrescueend.com/workflow/projects/#ruby-versions

+0

はあなたに私のためにその有効ありがとうございました – hyperrjas

関連する問題