DefangLabs / DefangLabs/defang

pick up `.env.STACK` automatically

Open
#2,128 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
166
Forks
24
Avg merge
10h 8m
Merged PRs (30d)
33

Description

The Defang CLI could pick up .env.STACK automatically, eg. defang up -s lio would read .env.lio. We could even allow $STACK within the .env for parameterization. STACK is the stack name.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the CLI entry point for defang up and its -s stack flag, then trace how environment files are loaded. Done should mean that defang up -s <STACK> reads .env.<STACK>; clarify whether $STACK expansion is also required before implementing and testing the chosen behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.