make fix-env
Repair everything repairable in .env, then validate.
Usage
make fix-env
What it does
A one-shot convenience that runs, in order:
fix-workdir— repair the host path /WORKING_DIR.fix-app— clear a dangling product.env-check— re-validate and report.
If anything unrepairable remains (a duplicate or malformed key — which can’t be auto-fixed because there is no safe way to pick the intended value), the final check fails with a non-zero exit code and tells you what to edit by hand.
When to use
When you just want to “make the .env right” without thinking about which
specific fixer to run.
Example
🛠️ SPLENT fix-workdir
[✔] SPLENT_HOST_PROJECT_DIR re-pointed: /old → /home/me/splent_workspace
[✔] WORKING_DIR already correct (/workspace)
🛠️ SPLENT fix-app
[✔] Cleared dangling SPLENT_APP='ghost' → detached mode
🩺 SPLENT .env check (/home/me/splent_workspace/.env)
[✔] No duplicate variables
...
✅ .env looks good.
Related
make env-check— validate only.make env-prepare— repair only (no final check).