use application factory, WIP
This commit is contained in:
parent
e6bc4928c9
commit
38e5ef85c0
17 changed files with 200 additions and 120 deletions
|
@ -1,3 +1,4 @@
|
|||
import click
|
||||
import re
|
||||
import os
|
||||
import hashlib
|
||||
|
@ -109,6 +110,18 @@ def is_su():
|
|||
return os.geteuid() == 0
|
||||
|
||||
|
||||
def green(s):
|
||||
click.secho(s, fg='green')
|
||||
|
||||
|
||||
def yellow(s):
|
||||
click.secho(s, fg='yellow')
|
||||
|
||||
|
||||
def red(s):
|
||||
click.secho(s, fg='red')
|
||||
|
||||
|
||||
def upstart_script(user='root', app_dir=None, port=5000, workers=2, path=None):
|
||||
script = """
|
||||
limit nofile 65335 65335
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue