Skip to content

fix(ansible): deploy backend .env to code_dir matching systemd EnvironmentFile (#2824)#2925

Merged
mrveiss merged 1 commit intoDev_new_guifrom
fix/issue-2824
Mar 30, 2026
Merged

fix(ansible): deploy backend .env to code_dir matching systemd EnvironmentFile (#2824)#2925
mrveiss merged 1 commit intoDev_new_guifrom
fix/issue-2824

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Mar 30, 2026

Summary

  • .env was deployed to backend_install_dir but systemd templates reference backend_code_dir
  • When these differ (e.g., setup-user-backend.yml), systemd fails with "No such file or directory"
  • Now uses {{ backend_code_dir | default(backend_install_dir) }}/.env — same expression as service templates
  • Added backup: true to preserve existing values

Closes #2824

🤖 Generated with Claude Code

…nmentFile (#2824)

The .env was deployed to backend_install_dir but systemd templates
reference backend_code_dir. When these differ (e.g., setup-user-backend),
systemd fails with "No such file or directory". Now uses same Jinja2
expression as service templates. Added backup:true to preserve values.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

⚠️ SSOT Configuration Compliance: Violations Found

Metric Count
Total Violations 4
SSOT Violations (high priority) 3
Other Violations 1

⚠️ 3 values have SSOT config equivalents!

These should be replaced with SSOT config imports:

Python:

from src.config.ssot_config import config
# Use: config.vm.main, config.port.backend, config.backend_url

TypeScript:

import config from '@/config/ssot-config'
// Use: config.vm.main, config.port.backend, config.backendUrl

📖 See SSOT_CONFIG_GUIDE.md for documentation.

@mrveiss mrveiss merged commit bb99deb into Dev_new_gui Mar 30, 2026
3 of 5 checks passed
@mrveiss mrveiss deleted the fix/issue-2824 branch March 30, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant