Guard against missing Procfile in engine.rb
Should be able to 'foreman run <task>' without a Procfile. This seems true to the orig. intent as the cli does not directly check with 'run' (as it does for 'start').
This commit is contained in:
@@ -21,7 +21,7 @@ class Foreman::Engine
|
|||||||
Foreman::Color.enable($stdout)
|
Foreman::Color.enable($stdout)
|
||||||
|
|
||||||
def initialize(procfile, options={})
|
def initialize(procfile, options={})
|
||||||
@procfile = Foreman::Procfile.new(procfile)
|
@procfile = Foreman::Procfile.new(procfile) if File.exists?(procfile)
|
||||||
@directory = options[:app_root] || File.expand_path(File.dirname(procfile))
|
@directory = options[:app_root] || File.expand_path(File.dirname(procfile))
|
||||||
@options = options.dup
|
@options = options.dup
|
||||||
@output_mutex = Mutex.new
|
@output_mutex = Mutex.new
|
||||||
|
|||||||
Reference in New Issue
Block a user