make fix-env

Repair everything repairable in .env, then validate.


Usage

make fix-env

What it does

A one-shot convenience that runs these targets, 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