publisher, deployer: neutral defaults in the packaged copies
build / build (push) Canceled after 2m34s
build / build (push) Canceled after 2m34s
Default host is localhost, user is "user", paths are under /home/user; the publisher apps_dir no longer points at a personal Tomcat. Tests of the copies follow. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,12 +18,12 @@ class ConfigError(ValueError):
|
||||
|
||||
@dataclass
|
||||
class Server:
|
||||
host: str = "192.168.88.60"
|
||||
user: str = "das"
|
||||
host: str = "localhost"
|
||||
user: str = "user"
|
||||
port: int = 22
|
||||
app_root: str = "/home/das/app"
|
||||
configs_root: str = "/home/das/app/configs"
|
||||
state_dir: str = "/home/das/app_deploy"
|
||||
app_root: str = "/home/user/app"
|
||||
configs_root: str = "/home/user/app/configs"
|
||||
state_dir: str = "/home/user/app_deploy"
|
||||
keep: int = 5
|
||||
local_roots: list[str] = field(default_factory=lambda: ["~/Dev/Projects"])
|
||||
# Development-only files: not synced for python/docker/files apps (an app can sync them via its own rules)
|
||||
@@ -53,7 +53,7 @@ class App:
|
||||
# python-*
|
||||
unit: str = ""
|
||||
entry: str = "main.py"
|
||||
user: str = "das"
|
||||
user: str = "user"
|
||||
description: str = ""
|
||||
env_file: str = ""
|
||||
syslog_id: str = ""
|
||||
|
||||
@@ -149,7 +149,7 @@ def import_server(cfg: Config, log=print) -> list[Imported]:
|
||||
if f[0] == "P" and len(f) == 9:
|
||||
_, d, unit, desc, user, sid, envf, entry, links = f
|
||||
app = App(name=d, kind="python-update", src="", dest=f"python/{d}", unit=unit, entry=entry or "main.py",
|
||||
user=user or "das", description=desc, syslog_id="" if sid == unit else sid, env_file=envf,
|
||||
user=user or "user", description=desc, syslog_id="" if sid == unit else sid, env_file=envf,
|
||||
configs=[x for x in links.split(",") if x])
|
||||
local = match_local(projects, [d, sid], unit)
|
||||
elif f[0] == "D" and len(f) == 2:
|
||||
|
||||
Reference in New Issue
Block a user