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:

  1. fix-workdir — repair the host path / WORKING_DIR.
  2. fix-app — clear a dangling product.
  3. 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.

Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es