简体   繁体   English

在Ubuntu 10.04 64位中运行Capistrano时出错

[英]Error running capistrano in ubuntu 10.04 64 bits

I'm a novice with capistrano, and I'm going to deploy my app in linode on SO ubuntu 10.04 lucid 64 bits. 我是capistrano的新手,我将在SO ubuntu 10.04清醒64位上的linode中部署我的应用程序。

I'm trying to make my deploy with capistrano gem, but I get the error: 我正在尝试使用capistrano gem进行部署,但出现错误:

[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
ubuntu@ubuntu:~/Desktop/project$ 

This is my deploy.rb 这是我的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'

I have installed nginx and I want to use unicorn with nginx. 我已经安装了nginx,并且想在nginx中使用独角兽。

I have a directory created in home/user/project in remote vps to deploy my application there. 我在远程vps的home/user/project中创建了一个目录,用于在其中部署我的应用程序。

My ruby version in vps remote host is: 我在vps远程主机中的ruby版本是:

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

Can anyone help shed some light on what I'm doing wrong? 谁能帮助我弄清我做错了什么?

RVM (head or 1.11.0) now supports tasks for installing RVM/Ruby, I have an article to describe the process http://niczsoft.com/2012/03/fast-deployment-using-capistrano-rvm-and-more/ RVM(head或1.11.0)现在支持安装RVM / Ruby的任务,我有一篇文章描述了该过程http://niczsoft.com/2012/03/fast-deployment-using-capistrano-rvm-and-more /

You can find my deploy.rb here: https://github.com/mpapis/ad/blob/master/config/deploy.rb 您可以在这里找到我的deploy.rb: https : //github.com/mpapis/ad/blob/master/config/deploy.rb

And here is description on RVM site: http://beginrescueend.com/integration/capistrano/ 这是RVM网站上的描述: http : //beginrescueend.com/integration/capistrano/

Also worth mentioning are the new file formats not requiring trusting: http://beginrescueend.com/workflow/projects/#ruby-versions 还值得一提的是不需要信任的新文件格式: http : //beginrescueend.com/workflow/projects/#ruby-versions

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM