Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35474ad1a5 | ||
|
|
fc5e86b269 | ||
|
|
7f8ca7da39 | ||
|
|
31239d98d0 |
@@ -5,3 +5,5 @@ man/*.?
|
|||||||
man/*.html
|
man/*.html
|
||||||
man/*.markdown
|
man/*.markdown
|
||||||
pkg
|
pkg
|
||||||
|
tags
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
module Foreman
|
module Foreman
|
||||||
|
|
||||||
VERSION = "0.11.0"
|
VERSION = "0.11.1"
|
||||||
|
|
||||||
class AppDoesNotExist < Exception; end
|
class AppDoesNotExist < Exception; end
|
||||||
|
|
||||||
|
|||||||
+7
-2
@@ -70,8 +70,6 @@ private ######################################################################
|
|||||||
options[:procfile] || "Procfile"
|
options[:procfile] || "Procfile"
|
||||||
end
|
end
|
||||||
|
|
||||||
private ######################################################################
|
|
||||||
|
|
||||||
def display(message)
|
def display(message)
|
||||||
puts message
|
puts message
|
||||||
end
|
end
|
||||||
@@ -85,4 +83,11 @@ private ######################################################################
|
|||||||
File.exist?(procfile)
|
File.exist?(procfile)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def options
|
||||||
|
original_options = super
|
||||||
|
return original_options unless File.exists?(".foreman")
|
||||||
|
defaults = YAML::load_file(".foreman")
|
||||||
|
Thor::CoreExt::HashWithIndifferentAccess.new(defaults.merge(original_options))
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -119,6 +119,15 @@ You can validate your Procfile format using the `check` command
|
|||||||
|
|
||||||
$ foreman check
|
$ foreman check
|
||||||
|
|
||||||
|
## DEFAULT OPTIONS
|
||||||
|
|
||||||
|
If a `.foreman` file exists in the current directory, default options will
|
||||||
|
be read from it. This file should be in YAML format with the long option
|
||||||
|
name as keys. Example:
|
||||||
|
|
||||||
|
concurrency: alpha=0
|
||||||
|
port: 15000
|
||||||
|
|
||||||
## EXAMPLES
|
## EXAMPLES
|
||||||
|
|
||||||
Start one instance of each process type, interleave the output on stdout:
|
Start one instance of each process type, interleave the output on stdout:
|
||||||
|
|||||||
Reference in New Issue
Block a user