0.02
No commit activity in last 3 years
No release in over 3 years
Guard::Passenger automatically restarts Passenger when needed.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.1
~> 0.7.3
~> 2.11.0
~> 2.11.0

Runtime

>= 1.1.0
 Project Readme

Guard::Passenger¶ ↑

<img src=“https://secure.travis-ci.org/mordaroso/guard-passenger.png” />

Guard::Passenger is the useful development server solution. The guard automatically starts Passenger and intelligently restarts the server when needed.

Install¶ ↑

Please be sure to have guard installed before continue.

Install the gem:

gem install guard-passenger

Add it to your Gemfile (inside test group):

gem 'guard-passenger'

Add guard definition to your Guardfile by running this command:

guard init passenger

Usage¶ ↑

Please read guard usage doc

Guardfile¶ ↑

Passenger guard can be really be adapted to all kind of rack project with Passenger. Please read guard doc for more info about Guardfile DSL.

Standard rails app¶ ↑

guard 'passenger' do
  watch(%|lib/.*\.rb|)
  watch(%|config/.*\.rb|)
end

Passenger standalone¶ ↑

Passenger standalone is used as default. You can pass options to the guard to disable or configure it. Guard::Passenger will start Passenger on startup and take it down on exit. By default Passenger standalone is activated and port is set to 3000.

Ping¶ ↑

You can choose to ping localhost:port(/path) after Passenger has been restarted, it’s done asynchronously so it won’t block other guards execution. If you set :ping to true, it will ping localhost:3000/, it you set :ping to a String, it will append the path to localhost:3000/ for the ping. If the ping responds with a non-5XX response, Passenger is considered as running, otherwise, there is probably a problem with Passenger.

Guard options¶ ↑

Guard::Passenger accepts some options for configuration.

# :standalone    boolean            run Passenger standalone                (default: true)
# :cli           string             options to pass to passenger command    (default: '--daemonize')
# :notification  boolean            Notifications enabled                   (default: true)
# :ping          boolean or string  ping localhost after Passenger restart  (default: false)
# :sudo          boolean or string  start Passenger under sudo              (default: false)

guard 'passenger', :standalone => false, :cli => '--daemonize --port 3001 --address my_app.local --environment production', :ping => '/foo', :sudo => 'rvmsudo' do
end

Development¶ ↑

Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change you make.

Authors¶ ↑

Fabio Kuhn

Contributors Forks