Files
computer-playbook/roles/web-app-wordpress/templates/env.j2
T
kevinveenbirkenbach 5e33e70892 refactor(database lookup usage): switch conditionals to enabled flag
Replace indirect type!='' checks with explicit database.enabled lookups
to improve semantics, readability, and alignment with strict lookup API.

https://chatgpt.com/share/6985d642-b40c-800f-9cdf-ed54fc484a92
2026-02-06 13:25:37 +01:00

10 lines
499 B
Django/Jinja

WORDPRESS_DB_HOST= "{{ lookup('database', application_id, 'host') }}:{{ lookup('database', application_id, 'port') }}"
WORDPRESS_DB_USER= "{{ lookup('database', application_id, 'username') }}"
WORDPRESS_DB_PASSWORD= {{ lookup('database', application_id, 'password') | dotenv_quote }}
WORDPRESS_DB_NAME= "{{ lookup('database', application_id, 'name') }}"
# Debug flags
WP_DEBUG={{ MODE_DEBUG | lower }}
WP_DEBUG_LOG={{ MODE_DEBUG | lower }}
WP_DEBUG_DISPLAY={{ MODE_DEBUG | lower }}