module Capistrano::Passenger
Public Instance Methods
restart_command()
click to toggle source
# File lib/capistrano_misc_recipes/passenger.rb, line 50 def restart_command "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" end
start_command()
click to toggle source
command to start passenger
# File lib/capistrano_misc_recipes/passenger.rb, line 21 def start_command # TODO try_sudo command = [] command << "cd #{current_path}" command << "&&" command << "rm -f #{passenger_socket_file}" # if passenger was finished ubnormally command << "&&" command << "#{bundlify 'passenger'} start" command << current_path if fetch :passenger_use_socket command << "--socket #{passenger_socket_file}" else command << "--address #{passenger_address}" command << "--port #{passenger_port}" end command << "--pid-file #{passenger_pid_file}" command << "--environment #{rails_env}" command << "--daemonize" command.join ' ' end
stop_command()
click to toggle source
# File lib/capistrano_misc_recipes/passenger.rb, line 45 def stop_command # TODO try_sudo "cd #{current_path} && #{bundlify 'passenger'} stop --pid-file #{passenger_pid_file} ; true" end