Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3756944
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:55:48+00:00 2026-05-19T09:55:48+00:00

I am trying to deploy a locally working Rails 3 app to Dreamhost with

  • 0

I am trying to deploy a locally working Rails 3 app to Dreamhost with Capistrano.
When I run ‘cap deploy -v’ in my local app root I get so far before it chokes on ‘bundle install’. The following is the end of the error message:

** transaction: start **
[abunchofletters.co.uk :: out] my_username@abunchofletters.co.uk’s password:
Password: **
[abunchofletters.co.uk :: out] **
[abunchofletters.co.uk :: out] HEAD is now at 62f9cdb Initial deploy to Dreamhost
** [out :: abunchofletters.co.uk] sh: bundle: command not found
* [deploy:update_code] rolling back
failed: “sh -c ‘bundle install –gemfile /home/my_username/abunchofletters.co.uk/releases/20110111100145/Gemfile –path /home/my_username/abunchofletters.co.uk/shared/bundle –deployment –quiet –without development test'” on abunchofletters.co.uk

Yet when I SSH into my server, and check the gem list, bundler 1.0.7 is shown to be installed [also running Ruby 1.8.7, Rails 3.0.3, RubyGems 1.3.6]. This is my first experience with deploying a Rails app as well as Capistrano so I’m close to clueless but I’d guess some path or variable is not set correctly.

Here’s my deploy.rb [created from following http://railstips.org/blog/archives/2008/12/14/deploying-rails-on-dreamhost-with-passenger/ so could be outdated]:

require "bundler/capistrano" # http://gembundler.com/deploying.html

default_run_options[:pty] = true

# be sure to change these
set :user,        'my_username'
set :domain,      'abunchofletters.co.uk'
set :application, 'abunchofletters'

# the rest should be good
set :repository,  "#{user}@#{domain}:git/#{application}.git"
set :deploy_to, "/home/#{user}/#{domain}"
set :deploy_via, :remote_cache
set :scm, 'git'
set :branch, 'master'
set :git_shallow_clone, 1
set :scm_verbose, true
set :use_sudo, false

server domain, :app, :web
role :db, domain, :primary => true

namespace :deploy do
  task :restart do
    run "touch #{current_path}/tmp/restart.txt"
  end
end

Any ideas how to progress? If there’s any more info you need just prompt me and I’ll supply it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T09:55:49+00:00Added an answer on May 19, 2026 at 9:55 am

    I’m not too satisfied with the solution I came up with, but it got the deploy to work and bundler to update.

    Here’s my updated deploy.rb:

    #require "bundler/capistrano"
    
    default_run_options[:pty] = true
    
    # be sure to change these
    set :user,        'futureproof'
    set :domain,      'abunchofletters.co.uk'
    set :application, 'abunchofletters'
    
    # the rest should be good
    set :repository,  "#{user}@#{domain}:git/#{application}.git"
    set :deploy_to, "/home/#{user}/#{domain}"
    set :deploy_via, :remote_cache
    set :shared_path, "/home/#{user}/.gems"
    set :scm, 'git'
    set :branch, 'master'
    set :git_shallow_clone, 1
    set :scm_verbose, true
    set :use_sudo, false
    
    server domain, :app, :web
    role :db, domain, :primary => true
    
    namespace :deploy do
      desc "expand the gems"
      task :gems, :roles => :web, :except => { :no_release => true } do
        run "cd #{current_path}; #{shared_path}/bin/bundle unlock"
        run "cd #{current_path}; nice -19 #{shared_path}/bin/bundle install vendor/" # nice -19 is very important otherwise DH will kill the process!
        run "cd #{current_path}; #{shared_path}/bin/bundle lock"
      end
    
      task :restart do
        run "touch #{current_path}/tmp/restart.txt"
      end
    end
    

    The :gems task was seen here: http://grigio.org/deploy_rails_3_passenger_apache_dreamhost, though the bundle lock/unlock are deprecated now. Might be able to simply replace with bundle install/update, but deprecated will do for tonight.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to deploy simple Rails app on glassfish v3 and get the following
I'm trying to deploy a rails application locally to a cluster of EC2 machines
i m in troubles :) Im trying to deploy an app with rails 3.2.1
I'm getting permissions errors while trying to deploy my rails app to a friend's
I'm trying to deploy my app to Heroku, I've done this before on my
I've been trying to get an app hosted on EngineYard, and have run into
I'm trying to deploy a Rails app on an Apache2 server by using Phusion
I have a private Rails app that I'm trying to install locally. It's currently
While trying to deploy my spring app on tomcat 6 I get an error
I'm trying to deploy a ruby on rails app to dotcloud. The app is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.