Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.
/ guard-unicorn Public archive

Guard::Unicorn automatically restarts the Unicorn server using Guard.

Notifications You must be signed in to change notification settings

andreimaxim/guard-unicorn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guard::Unicorn

Gem Version Build Status Code Climate Coverage Status

Guard::Unicorn automatically restarts the Unicorn server using [Guard] gu.

Installation

Using Rubygems:

$ gem install guard-unicorn

Using Bundler, add this to your Gemfile, preferably in the development group:

group :development
  gem 'guard-unicorn'
end

Add a sample Guard definition to your Guardfile:

$ guard init unicorn

Guard General Usage

Please read the [guard usage doc] gd in order to find out more about Guard and how to use Guards. There is also [a Railscast about Guard] gc, created by Ryan Bates.

It is recommended that you also install the [ruby-gntp] gntp on Mac OS X, [libnotify] ln on Linux, FreeBSD or Solaris or [rb-notifu] notifu in order to have graphical notifications.

Guardfile for guard-unicorn

guard :unicorn, :daemonized => true

Available options:

  • :daemonized run the Unicorn server as a daemon. Can be true or false. Defaults to false
  • :bundler use bundle exec to start Unicorn. Defaults to true.
  • :config_file path to the Unicorn config file. Defaults to config/unicorn.rb
  • :pid_file path to the Unicorn PID file. Defaults to tmp/pids/unicorn.pid
  • :preloading is Unicorn configured to preload the application? Defaults to false.
  • :port on what port to run Unicorn. Defaults to 8080.
  • :unicorn_rails use unicorn_rails command instead of unicorn. For ancient Rails versions. Defaults to false.

About

Guard::Unicorn automatically restarts the Unicorn server using Guard.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages