make fix-env
Introduction
make fix-env repairs everything it can in .env, then validates it. Run it when you want the .env right without choosing which repair to run.
make fix-env
🛠️ 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.
What it runs
fix-workdirrepairs the host path andWORKING_DIR.fix-appclears a dangling product.env-checkvalidates and reports.
See how the repairs write .env.
When it cannot repair a key
A duplicate or malformed key cannot be fixed safely. The final check fails with exit 1 and tells you what to edit by hand.
A duplicated SPLENT_HOST_PROJECT_DIR or WORKING_DIR is the exception. fix-workdir knows the right value and collapses it into one line.
See also
make env-preparerepairs without the final check.