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

  • Home
  • SEARCH
  • 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 7403121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:58:31+00:00 2026-05-29T04:58:31+00:00

Each time i run on my local machine cap:deploy i get next error when

  • 0

Each time i run on my local machine cap:deploy i get next error when i open my web-page:

Ruby (Rack) application could not be started
Error message:
git://github.com/ctran/annotate_models.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError)
Exception class:
PhusionPassenger::UnknownError
Application root:
/vol/www/apps/ror_tutorial/current
Backtrace:
#
File
Line
Location
0
/usr/local/rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/source.rb
572
in `rescue in load_spec_files'
1
/usr/local/rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/source.rb
570
in `load_spec_files'
2
/usr/local/rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/source.rb
385
in `local_specs'
3
/usr/local/rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/source.rb
555
in `specs'
4
/usr/local/rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/definition.rb
147
in `block in resolve'
5
/usr/local/rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/definition.rb
145
in `each'
6
/usr/local/rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/definition.rb
145
in `resolve'
7
/usr/local/rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/definition.rb
90
in `specs'
8
/usr/local/rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/definition.rb
135
in `specs_for'
9
/usr/local/rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/definition.rb
124
in `requested_specs'
10
/usr/local/rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/environment.rb
23
in `requested_specs'
11
/usr/local/rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler/runtime.rb
11
in `setup'
12
/usr/local/rvm/gems/ruby-1.9.3-head/gems/bundler-1.0.21/lib/bundler.rb
110
in `setup'
13
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/utils.rb
326
in `prepare_app_process'
14
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/rack/application_spawner.rb
156
in `block in initialize_server'
15
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/utils.rb
572
in `report_app_init_status'
16
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/rack/application_spawner.rb
154
in `initialize_server'
17
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb
204
in `start_synchronously'
18
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb
180
in `start'
19
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/rack/application_spawner.rb
129
in `start'
20
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb
253
in `block (2 levels) in spawn_rack_application'
21
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server_collection.rb
132
in `lookup_or_add'
22
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb
246
in `block in spawn_rack_application'
23
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server_collection.rb
82
in `block in synchronize'
24

prelude>
10:in `synchronize'
25
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server_collection.rb
79
in `synchronize'
26
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb
244
in `spawn_rack_application'
27
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb
137
in `spawn_application'
28
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb
275
in `handle_spawn_application'
29
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb
357
in `server_main_loop'
30
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb
206
in `start_synchronously'
31
/usr/local/rvm/gems/ruby-1.9.3-head/gems/passenger-3.0.11/helper-scripts/passenger-spawn-server
99
in `'

I fix that by next lines:

$ bundle install --without development test
$ bundle install --deployment
$ service nginx restart

But i really tired to do that again and again. Does anyone know how to fix it forever?

My gemfile:

source 'http://rubygems.org'

gem 'rails', '3.1.3'                                                          
gem 'gravatar_image_tag'
gem 'will_paginate'
gem 'rack'                                                                    
gem 'rake'                                                                    
gem 'texticle', "2.0", :require => 'texticle/rails'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails'                                                            
  gem 'coffee-rails'                                                          
  gem 'uglifier'
end

gem 'jquery-rails'

group :development do
  gem 'capistrano'
  gem 'rspec-rails'                                                          
  gem 'therubyracer-heroku'
  gem 'pg'                                                                     
  gem 'annotate', :git => 'git://github.com/ctran/annotate_models.git'        
  gem 'faker'                                                                 
end

group :test do
  gem 'rspec-rails'                                                           
  gem 'webrat'                                                                
  gem 'spork'
  gem 'autotest'                                                                                                               
  gem 'autotest-rails-pure'                                                                                                  
  gem 'autotest-fsevent'                                                      
  gem 'autotest-growl'                                                                                                     
  gem 'factory_girl_rails'
end

group :production do  
  gem 'pg'                                                                    
  gem 'faker'
end

config/deploy.rb

set :user, "root"                                                                 
set :rails_env, "production"

default_run_options[:pty] = true                                              
set :repository,  "git://github.com/Loremaster/sample_app.git"

set :application, "ror_tutorial"
set :deploy_to, "/vol/www/apps/#{application}"

set :scm, :git
set :branch, "master"
set :deploy_via, :remote_cache                                                

server "my.ip", :app,
                          :web,
                          :db, :primary => true


# If you are using Passenger mod_rails uncomment this:
namespace :deploy do
   task :start do ; end
   task :stop do ; end
   task :restart, :roles => :app, :except => { :no_release => true } do
     run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
   end
end

My Server system:

Ubuntu 10.04 LTS
PostgreSQL 9.1
Rails 3.1.3
Ruby 1.9.3p27
Nginx 1.0.11 (installed/compiled by passenger)
Phusion passenger 3.0.11
Capistrano
  • 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-29T04:58:32+00:00Added an answer on May 29, 2026 at 4:58 am

    capistrano does not automatically run the bundler command unless you specify that you use bundler in your deploy.rb. I add this line to the top of my deploy.rb file to activate bundler integration. Capistrano then automatically runs the right bundler commands when deploying.

    require 'bundler/capistrano'  # Add Bundler integration to capistrano
    

    Your solution, of running bundle install --without development test and bundle install --deployment is effectively the same, but has to be kept up to date manually. In addition, you could distill this into a single command: bundle install --deployment --without development test. In your current solution, you are running bundler twice.

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

Sidebar

Related Questions

Using VS2008 on my local dev machine, when I run my asp.net Web Application
I developed one swing application but each time you run application new window is
How do I run a batch file each time windows boots up also I
The webViewDidFinishLoad message seems to be sent each time any object in the page
Each time a python file is imported that contains a large quantity of static
Each time my webpage is loaded it runs a routine in the page_load event
Each time I click on the map a new marker is placed on the
I want to output the function name each time it is called, I can
It's a WiX MSI installer and each time I uninstall and reinstall it in
I'm getting this message each time I compile my project: RunIPhoneUnitTest.sh: line 92: 31389

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.