mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
nginx_template
This commit is contained in:
@@ -117,7 +117,7 @@ def prepare_http_host(c):
|
||||
permissions='755',
|
||||
)
|
||||
|
||||
for file in ['nginx_site.conf', 'nginx_sync.py']:
|
||||
for file in ['nginx_template.conf', 'nginx_sync.py']:
|
||||
put(
|
||||
c,
|
||||
SCRIPTS_DIR / 'http_host' / 'nginx_sync' / file,
|
||||
@@ -130,7 +130,7 @@ def prepare_http_host(c):
|
||||
|
||||
|
||||
def debug_tmp(c):
|
||||
for file in ['nginx_site.conf', 'nginx_sync.py']:
|
||||
for file in ['nginx_template.conf', 'nginx_sync.py']:
|
||||
put(
|
||||
c,
|
||||
SCRIPTS_DIR / 'http_host' / 'nginx_sync' / file,
|
||||
|
||||
@@ -18,7 +18,7 @@ def cli():
|
||||
if not Path('/mnt/ofm').exists():
|
||||
sys.exit('mounter.py needs to be run first')
|
||||
|
||||
with open(Path(__file__).parent / 'nginx_site.conf') as fp:
|
||||
with open(Path(__file__).parent / 'nginx_template.conf') as fp:
|
||||
nginx_template = fp.read()
|
||||
|
||||
location_block_str = ''
|
||||
|
||||
Reference in New Issue
Block a user