Merge pull request #53 from matth/master
Blank line in Procfile breaks Foreman
This commit is contained in:
commit
ffd77312bb
2 files changed
+2
-1
No files matched your search
@@ -25,7 +25,7 @@ class Foreman::Engine
|
|||||||
@processes ||= begin
|
@processes ||= begin
|
||||||
@order = []
|
@order = []
|
||||||
procfile.split("\n").inject({}) do |hash, line|
|
procfile.split("\n").inject({}) do |hash, line|
|
||||||
next if line.strip == ""
|
next hash if line.strip == ""
|
||||||
name, command = line.split(/ *: +/, 2)
|
name, command = line.split(/ *: +/, 2)
|
||||||
unless command
|
unless command
|
||||||
warn_deprecated_procfile!
|
warn_deprecated_procfile!
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ end
|
|||||||
def write_procfile(procfile="Procfile")
|
def write_procfile(procfile="Procfile")
|
||||||
File.open(procfile, "w") do |file|
|
File.open(procfile, "w") do |file|
|
||||||
file.puts "alpha: ./alpha"
|
file.puts "alpha: ./alpha"
|
||||||
|
file.puts "\n"
|
||||||
file.puts "bravo: ./bravo"
|
file.puts "bravo: ./bravo"
|
||||||
end
|
end
|
||||||
File.expand_path(procfile)
|
File.expand_path(procfile)
|
||||||
|
|||||||
Reference in new issue
Block a user