[~] Refactor
This commit is contained in:
parent
9bc2752fab
commit
fefee3c3ea
@ -1283,16 +1283,15 @@ server {
|
||||
location_section,
|
||||
))
|
||||
|
||||
subprocess.check_call(
|
||||
r'''
|
||||
exec nginx -c $CONF_DIR/nginx.conf -p $DATA_DIR -g "daemon off;"
|
||||
''',
|
||||
env=dict(
|
||||
CONF_DIR=CONF_DIR,
|
||||
DATA_DIR=DATA_DIR,
|
||||
#APP_DIR=APP_DIR,
|
||||
),
|
||||
shell=True,
|
||||
os.execv(
|
||||
'nginx',
|
||||
[
|
||||
'nginx',
|
||||
'-c',
|
||||
os.path.join(CONF_DIR, 'nginx.conf'),
|
||||
'-p',
|
||||
'-g', 'daemon off;',
|
||||
],
|
||||
)
|
||||
|
||||
def pass_ssh_osx(argv):
|
||||
|
Loading…
Reference in New Issue
Block a user