Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Guard::Passenger automatically restarts passenger when needed
tag: 0.0.6

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/guard
spec
.gitignore
Gemfile
Guardfile
LICENSE
README.rdoc
Rakefile
guard-passenger.gemspec

README.rdoc

Guard::Passenger

Passenger guard allows to automatically & intelligently restart passenger when needed. This is particularly useful if you use passenger in development.

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 adapated 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

To use passenger standalone you can pass options to the guard. Guard::Passenger will start passenger on startup and take it down on exit. By default passenger standalone is deactivated and port is set to 3000.

guard 'passenger', :standalone => true, :port => 3001 do
  watch('lib/.*\.rb')
  watch('config/.*\.rb')
end

Guard options

Guard::Passenger accepts some options for configuration.

# :standalone    boolean     run passenger standalone  (default: false)
# :port          integer     using the given port      (default: 3000)
# :env           string      framework environment     (default: development)

guard 'passenger', :standalone => true, :port => 3001, :env => 'production' 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

Something went wrong with that request. Please try again.