Skip to content

Commit

Permalink
start/stop to use bundle exec
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbowes committed May 18, 2011
1 parent 96e0155 commit 30c0495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/daemon_kit/deployment/capistrano.rb
Expand Up @@ -445,7 +445,7 @@ def try_runner(*args)
the :use_sudo variable to false.
DESC
task :start do
try_runner "DAEMON_ENV=#{fetch(:daemon_env)} bundle --gemfile #{current_path}/Gemfile #{current_path}/bin/#{application} start"
try_runner "DAEMON_ENV=#{fetch(:daemon_env)} BUNDLE_GEMFILE=#{current_path}/Gemfile bundle exec #{current_path}/bin/#{application} start"
end

desc <<-DESC
Expand All @@ -457,7 +457,7 @@ def try_runner(*args)
the :use_sudo variable to false.
DESC
task :stop do
try_runner "DAEMON_ENV=#{fetch(:daemon_env)} bundle --gemfile #{current_path}/Gemfile #{current_path}/bin/#{application} stop"
try_runner "DAEMON_ENV=#{fetch(:daemon_env)} BUNDLE_GEMFILE=#{current_path}/Gemfile bundle exec #{current_path}/bin/#{application} stop"
end

namespace :pending do
Expand Down

0 comments on commit 30c0495

Please sign in to comment.