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

  1. fix-workdir repairs the host path and WORKING_DIR.
  2. fix-app clears a dangling product.
  3. env-check validates 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


Back to top

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