From 2e734ddea914621b5e329865a4731143fd320d5a Mon Sep 17 00:00:00 2001 From: Daniel McCrystal Date: Sat, 2 Aug 2025 01:33:34 -0400 Subject: [PATCH] envs are important --- build.log | 8 ++++++++ deploy.py | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 build.log diff --git a/build.log b/build.log new file mode 100644 index 0000000..6783876 --- /dev/null +++ b/build.log @@ -0,0 +1,8 @@ +starting build from root/: () +fatal: repository './src' does not exist +fatal: not a git repository (or any of the parent directories): .git +fatal: not a git repository (or any of the parent directories): .git +fatal: not a git repository (or any of the parent directories): .git +make: *** No rule to make target 'build'. Stop. +build complete! +Failed to restart deployer-.service: Unit deployer-.service not found. diff --git a/deploy.py b/deploy.py index 3e8b76f..5b8e1aa 100644 --- a/deploy.py +++ b/deploy.py @@ -51,8 +51,9 @@ def handle_request(rq: DeployerRequest): [ "tmux", "new-session", - "-d", - "-s", + "-L", # pass environment variables + "-d", # detach + "-s", # name f"{domain}-build-{deployment_id}", f"'sudo ./deploy.sh > {build_log} 2>&1'", ],