mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
@@ -2,7 +2,7 @@ from ssh_lib import PLANETILER_BIN, PLANETILER_SRC
|
||||
from ssh_lib.utils import apt_get_install, apt_get_update, exists, sudo_cmd
|
||||
|
||||
|
||||
PLANETILER_COMMIT = 'ee22a014022f1dcc120cba6a768567408ba74908'
|
||||
PLANETILER_COMMIT = 'cc769c4f'
|
||||
PLANETILER_PATH = f'{PLANETILER_BIN}/planetiler.jar'
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ def install_planetiler(c):
|
||||
c.sudo(f'rm -rf {PLANETILER_BIN} {PLANETILER_SRC}')
|
||||
c.sudo(f'mkdir -p {PLANETILER_BIN} {PLANETILER_SRC}')
|
||||
|
||||
c.sudo('git config --global advice.detachedHead false')
|
||||
c.sudo(
|
||||
f'git clone --recurse-submodules https://github.com/onthegomap/planetiler.git {PLANETILER_SRC}'
|
||||
)
|
||||
|
||||
@@ -12,7 +12,7 @@ from ssh_lib import (
|
||||
dotenv_val,
|
||||
)
|
||||
from ssh_lib.benchmark import c1000k, wrk
|
||||
from ssh_lib.kernel import kernel_tweaks_ofm
|
||||
from ssh_lib.kernel import kernel_limits1m, kernel_somaxconn65k
|
||||
from ssh_lib.nginx import certbot, nginx
|
||||
from ssh_lib.pkg_base import pkg_base, pkg_upgrade
|
||||
from ssh_lib.planetiler import install_planetiler
|
||||
@@ -83,7 +83,8 @@ def prepare_tile_gen(c, *, enable_cron):
|
||||
|
||||
|
||||
def prepare_http_host(c):
|
||||
kernel_tweaks_ofm(c)
|
||||
kernel_somaxconn65k(c)
|
||||
kernel_limits1m(c)
|
||||
|
||||
nginx(c)
|
||||
certbot(c)
|
||||
|
||||
Reference in New Issue
Block a user