Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a default port.

Put 3000 as the default port for users more familiar with a normal rails development server
  • Loading branch information...
commit e18b638cf7a370cf829a405d67b5e36fe4ab42f1 1 parent 93368b5
@workmad3 workmad3 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/guard/unicorn.rb
View
3  lib/guard/unicorn.rb
@@ -7,6 +7,7 @@ class Unicorn < Guard
# Sensible defaults for Rails projects
DEFAULT_PID_PATH = File.join("tmp", "pids", "unicorn.pid")
DEFAULT_CONFIG_PATH = File.join("config", "unicorn.rb")
+ DEFAULT_PORT = 3000
# Initialize a Guard.
# @param [Array<Guard::Watcher>] watchers the Guard file watchers
@@ -22,7 +23,7 @@ def initialize(watchers = [], options = {})
@pid_file = options.fetch(:pid_file, DEFAULT_PID_PATH)
@config_file = options.fetch(:config_file, DEFAULT_CONFIG_PATH)
@preloading = options.fetch(:preloading, false)
- @port = options.fetch(:port, 8080)
+ @port = options.fetch(:port, DEFAULT_PORT)
super
end
Please sign in to comment.
Something went wrong with that request. Please try again.