Commit 25c30e4
fix(cli): wrapper の source .env を devbase root 限定にする (#18)
`bin/devbase` は CWD 直下の `.env` を無条件で bash source していたため、
project ディレクトリ (例: carmo-system-console) で `devbase down` を実行
すると Laravel ランタイム用 `.env` を読み込んでしまい、CRLF 改行や
`|` / `&` 等の特殊文字を値に含む行で syntax error / `: command not found`
となり全コマンドが起動不能になっていた。
compose は `env_file` 指定および同階層 `.env` を自前で読むため、wrapper
側で project の `.env` を source する必要は無い。source の本来の意図は
devbase root の `.env` (AWS / BigQuery 等 devbase ツール用変数) を取り込む
ことなので、source 対象を `${DEVBASE_ROOT}/.env` に限定する。
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent e0408b0 commit 25c30e4
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
0 commit comments