This repository was archived by the owner on Apr 14, 2026. It is now read-only.
feat: DALCENTER_URL 자동 설정 (#558)#704
Merged
Merged
Conversation
dalcenter serve가 시작될 때 addr에서 포트를 추출하여 DALCENTER_URL=http://localhost:<port>를 자동으로 설정한다: 1. /etc/dalcenter/<repo>.env에 추가/갱신 2. $HOME/.bashrc에 export 추가/갱신 3. 현재 프로세스 환경변수에 설정 이미 올바른 값이 있으면 중복 기록하지 않음 (idempotent). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dalcenter serve시작 시DALCENTER_URL=http://localhost:<port>를 자동 설정/etc/dalcenter/<repo>.env에 추가/갱신$HOME/.bashrc에export DALCENTER_URL=...추가/갱신Test plan
go test ./internal/daemon/ -run TestBuildURL— addr 파싱 검증go test ./internal/daemon/ -run TestEnsureEnvLine— env 파일 쓰기/갱신/idempotentgo test ./internal/daemon/ -run TestEnsureBashrcExport— bashrc 쓰기/갱신/idempotentdalcenter serve후env | grep DALCENTER_URL확인source ~/.bashrc && echo $DALCENTER_URL확인Closes #558
🤖 Generated with Claude Code