make env-prepare

Introduction

make env-prepare makes sure the workspace .env exists and is correct. make setup and make docker-up run it for you. Run it alone to create the .env of a fresh clone without starting Docker.

make env-prepare
🛠️  SPLENT fix-workdir

  • Created .env from .env.example
  [✔] SPLENT_HOST_PROJECT_DIR set to /home/me/splent_workspace
  [✔] WORKING_DIR already correct (/workspace)

🛠️  SPLENT fix-app

  [✔] No product selected (already detached), nothing to fix

What it runs

  1. fix-workdir creates ../.env from the committed splent_cli/.env.example when it is missing. Then it sets SPLENT_HOST_PROJECT_DIR to the real host path and WORKING_DIR to /workspace.
  2. fix-app clears SPLENT_APP when it names a product folder that does not exist.

Every other key is kept. See how the repairs write .env.


Adding your credentials

It never fills in SPLENT_FORGE_TOKEN or TWINE_PASSWORD. Add them to ../.env by hand, or run these inside the container.

splent env:set forge
splent env:set pypi

See env:set.


See also


Back to top

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