After a
cap deploy
a 'restart' task is run. This task runs a 'stop' presumably followed by a 'start'. The 'stop' command fails with the message:
Could not locate Gemfile
I'm guessing this has something to do with the load path? When I'm running:
/var/www/calculator.delaagsterekening.nl/httpdocs/current/bin/dlr-calculator
the same error occurs. When I run:
cd /var/www/calculator.delaagsterekening.nl/httpdocs/current && bin/dlr-calculator
Everything is fine.
Stacktrace:
** [out :: staging.delaagsterekening.nl] /opt/ruby1.9.1p378/lib/ruby/gems/1.9.1/gems/bundler-1.0.2/lib/bundler/shared_helpers.rb:21:in default_gemfile' ** [out :: staging.delaagsterekening.nl] : ** [out :: staging.delaagsterekening.nl] Could not locate Gemfile ** [out :: staging.delaagsterekening.nl] ( ** [out :: staging.delaagsterekening.nl] Bundler::GemfileNotFound ** [out :: staging.delaagsterekening.nl] ) ** [out :: staging.delaagsterekening.nl] from /opt/ruby1.9.1p378/lib/ruby/gems/1.9.1/gems/bundler-1.0.2/lib/bundler.rb:187:indefault_gemfile'
** [out :: staging.delaagsterekening.nl] from /opt/ruby1.9.1p378/lib/ruby/gems/1.9.1/gems/bundler-1.0.2/lib/bundler.rb:157:in root' ** [out :: staging.delaagsterekening.nl] from /opt/ruby1.9.1p378/lib/ruby/gems/1.9.1/gems/bundler-1.0.2/lib/bundler.rb:116:inload'
** [out :: staging.delaagsterekening.nl] from /opt/ruby1.9.1p378/lib/ruby/gems/1.9.1/gems/bundler-1.0.2/lib/bundler.rb:100:in setup' ** [out :: staging.delaagsterekening.nl] from /var/www/calculator.delaagsterekening.nl/httpdocs/current/config/boot.rb:12:inrescue in <top (required)>'
** [out :: staging.delaagsterekening.nl] from /var/www/calculator.delaagsterekening.nl/httpdocs/current/config/boot.rb:7:in <top (required)>' ** [out :: staging.delaagsterekening.nl] from /var/www/calculator.delaagsterekening.nl/httpdocs/current/config/environment.rb:7:inrequire'
** [out :: staging.delaagsterekening.nl] from /var/www/calculator.delaagsterekening.nl/httpdocs/current/config/environment.rb:7:in <top (required)>' ** [out :: staging.delaagsterekening.nl] from /var/www/calculator.delaagsterekening.nl/httpdocs/current/bin/dlr-calculator:6:inrequire'
** [out :: staging.delaagsterekening.nl] from /var/www/calculator.delaagsterekening.nl/httpdocs/current/bin/dlr-calculator:6:in `
'
Bundler 1.0.2
Daemon-kit 0.1.8.1
Capistrano 2.5.19
After a
cap deploy
a 'restart' task is run. This task runs a 'stop' presumably followed by a 'start'. The 'stop' command fails with the message:
Could not locate Gemfile
I'm guessing this has something to do with the load path? When I'm running:
/var/www/calculator.delaagsterekening.nl/httpdocs/current/bin/dlr-calculator
the same error occurs. When I run:
cd /var/www/calculator.delaagsterekening.nl/httpdocs/current && bin/dlr-calculator
Everything is fine.
Stacktrace:
'** [out :: staging.delaagsterekening.nl] /opt/ruby1.9.1p378/lib/ruby/gems/1.9.1/gems/bundler-1.0.2/lib/bundler/shared_helpers.rb:21:in
default_gemfile' ** [out :: staging.delaagsterekening.nl] : ** [out :: staging.delaagsterekening.nl] Could not locate Gemfile ** [out :: staging.delaagsterekening.nl] ( ** [out :: staging.delaagsterekening.nl] Bundler::GemfileNotFound ** [out :: staging.delaagsterekening.nl] ) ** [out :: staging.delaagsterekening.nl] from /opt/ruby1.9.1p378/lib/ruby/gems/1.9.1/gems/bundler-1.0.2/lib/bundler.rb:187:indefault_gemfile'** [out :: staging.delaagsterekening.nl] from /opt/ruby1.9.1p378/lib/ruby/gems/1.9.1/gems/bundler-1.0.2/lib/bundler.rb:157:in
root' ** [out :: staging.delaagsterekening.nl] from /opt/ruby1.9.1p378/lib/ruby/gems/1.9.1/gems/bundler-1.0.2/lib/bundler.rb:116:inload'** [out :: staging.delaagsterekening.nl] from /opt/ruby1.9.1p378/lib/ruby/gems/1.9.1/gems/bundler-1.0.2/lib/bundler.rb:100:in
setup' ** [out :: staging.delaagsterekening.nl] from /var/www/calculator.delaagsterekening.nl/httpdocs/current/config/boot.rb:12:inrescue in <top (required)>'** [out :: staging.delaagsterekening.nl] from /var/www/calculator.delaagsterekening.nl/httpdocs/current/config/boot.rb:7:in
<top (required)>' ** [out :: staging.delaagsterekening.nl] from /var/www/calculator.delaagsterekening.nl/httpdocs/current/config/environment.rb:7:inrequire'** [out :: staging.delaagsterekening.nl] from /var/www/calculator.delaagsterekening.nl/httpdocs/current/config/environment.rb:7:in
<top (required)>' ** [out :: staging.delaagsterekening.nl] from /var/www/calculator.delaagsterekening.nl/httpdocs/current/bin/dlr-calculator:6:inrequire'** [out :: staging.delaagsterekening.nl] from /var/www/calculator.delaagsterekening.nl/httpdocs/current/bin/dlr-calculator:6:in `
Bundler 1.0.2
Daemon-kit 0.1.8.1
Capistrano 2.5.19