kopia lustrzana https://github.com/piku/piku
remove restriction in worker names
rodzic
7fbb88f514
commit
c5655bdfba
3
piku.py
3
piku.py
|
@ -164,10 +164,9 @@ def parse_procfile(filename):
|
||||||
for line in procfile:
|
for line in procfile:
|
||||||
try:
|
try:
|
||||||
kind, command = map(lambda x: x.strip(), line.split(":", 1))
|
kind, command = map(lambda x: x.strip(), line.split(":", 1))
|
||||||
if kind in ['web', 'worker', 'wsgi']:
|
|
||||||
workers[kind] = command
|
workers[kind] = command
|
||||||
except:
|
except:
|
||||||
echo("Warning: unrecognized Procfile declaration '%s'" % line, fg='yellow')
|
echo("Warning: unrecognized Procfile entry '%s'" % line, fg='yellow')
|
||||||
if not len(workers):
|
if not len(workers):
|
||||||
return {}
|
return {}
|
||||||
# WSGI trumps regular web workers
|
# WSGI trumps regular web workers
|
||||||
|
|
Ładowanie…
Reference in New Issue