refactor: use $DOMAIN env var instead of hardcoded lazyworkhorse.net
Replace all hardcoded lazyworkhorse.net references in compose files
with ${DOMAIN} variable substitution. Create .env.production and
.env.staging environment files. Update Makefile with ENV selection
(--env-file support) and staging/production targets.
Changes:
- All 13 compose YAML files: lazyworkhorse.net -> ${DOMAIN}
- New .env.production (DOMAIN=lazyworkhorse.net)
- New .env.staging (DOMAIN=staging.lazyworkhorse.net)
- Makefile: ENV var, --env-file flag, staging/production targets
- Gitea redirect regex updated for variable substitution
- CI workflow checkout URLs left hardcoded (infrastructure refs)
- Dockerfile SSH host refs left hardcoded (infrastructure refs)
Deploy: make ENV=staging all_up or make staging
make ENV=production all_up or make production
This commit is contained in:
4
.env.staging
Normal file
4
.env.staging
Normal file
@@ -0,0 +1,4 @@
|
||||
# Staging environment
|
||||
# docker compose --env-file .env.staging up -d
|
||||
DOMAIN=staging.lazyworkhorse.net
|
||||
SITE_URL=https://staging.lazyworkhorse.net
|
||||
Reference in New Issue
Block a user