account for 285

This commit is contained in:
Kiara Grouwstra 2025-05-11 17:58:25 +02:00
parent ec47484186
commit 84e5b67d25
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -23,6 +23,10 @@ class Index(TemplateView):
template_name = 'index.html'
class Index(TemplateView):
template_name = 'index.html'
class AccountDetail(LoginRequiredMixin, DetailView):
model = User
template_name = 'account_detail.html'
@ -109,6 +113,12 @@ class DeploymentStatus(ConfigurationForm):
# pass in form info to our deployment
"DEPLOYMENT": config.json()
}
# XXX should we not log this if it may show proxmox credentials from `.envrc`s?
# those could instead be passed as sensitive TF vars, but that would not address this.
logger.debug("env: %s", env)
cwd = f"{settings.repo_dir}/launch"
# direnv wants this run upfront, and chaining in subprocess feels awkward
subprocess.check_call(["direnv", "allow"], cwd=cwd)
cmd = [
"nix",
"develop",
@ -119,9 +129,6 @@ class DeploymentStatus(ConfigurationForm):
"apply",
"test",
]
deployment_result = subprocess.run(
cmd,
cwd=settings.repo_dir,
env=env,
)
deployment_result = subprocess.run(cmd, cwd=cwd, env=env)
logger.debug("deployment_result: %s", deployment_result)
return deployment_result, config