forked from metin-server/m2dev-server
deploy: support runtime env files
This commit is contained in:
@@ -24,6 +24,7 @@ def parse_args() -> argparse.Namespace:
|
||||
parser.add_argument("--runtime-root", required=True, help="Absolute path to the live runtime root")
|
||||
parser.add_argument("--systemd-dir", default="/etc/systemd/system", help="systemd unit destination")
|
||||
parser.add_argument("--libexec-dir", default="/usr/local/libexec", help="Helper script destination")
|
||||
parser.add_argument("--env-file", default="/etc/metin/metin.env", help="Optional EnvironmentFile path for runtime overrides")
|
||||
parser.add_argument("--wait-host", default="127.0.0.1", help="DB readiness host")
|
||||
parser.add_argument("--wait-port", type=int, default=9000, help="DB readiness port")
|
||||
parser.add_argument("--wait-timeout", type=int, default=30, help="DB readiness timeout in seconds")
|
||||
@@ -118,6 +119,7 @@ def main() -> int:
|
||||
"USER_NAME": args.user,
|
||||
"GROUP_NAME": group_name,
|
||||
"RUNTIME_ROOT": runtime_root,
|
||||
"ENV_FILE": args.env_file,
|
||||
"WAIT_HOST": args.wait_host,
|
||||
"WAIT_PORT": str(args.wait_port),
|
||||
"WAIT_TIMEOUT": str(args.wait_timeout),
|
||||
|
||||
Reference in New Issue
Block a user