Changeset 75

Show
Ignore:
Timestamp:
02/02/08 10:27:56 (10 months ago)
Author:
jweiss
Message:

fix mongrel_rails start/stop commands if used with sudo

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/webistrano/template/mongrel_rails.rb

    r49 r75  
    3232              desc "#{t.to_s.capitalize} mongrel" 
    3333              task t, :roles => :app, :except => { :no_release => true } do 
    34                 invoke_command "mongrel_rails cluster::#{t.to_s} -C #{mongrel_config} --clean", :via => run_method 
     34                as = fetch(:runner, "app") 
     35                invoke_command "mongrel_rails cluster::#{t.to_s} -C #{mongrel_config} --clean", :via => run_method, :as => as 
    3536              end 
    3637            end