You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 최초 환경 세팅 (툴체인 + 의존성 설치 + 로컬 DB 초기화)
mise run setup
# 환경 변수 파일 준비 (최초 1회, 값 채우기)
cp .env.example .env.development
# 로컬 DB 시작
pnpm db:start
# DB role과 앱 DB 생성 (최초 1회, .env.example 기준값)
createuser -h /tmp postgres
createdb -h /tmp -O postgres momo
# 개발 서버 실행 (watch 모드)
pnpm start:dev
createuser / createdb는 mise가 설치한 PostgreSQL 17의 커맨드이므로 mise 셸 활성화 상태에서 실행해야 합니다.
initdb는 OS 사용자명의 superuser만 만들기 때문에, 이 단계를 건너뛰면
role "postgres" does not exist / database "momo" does not exist 에러로 부팅에 실패합니다.
OCI_REGION이 비어 있어도 S3Client 초기화 에러로 부팅에 실패하므로 .env.development에 최소한 리전은 채워야 합니다.
자세한 내용은 Environment Variables를 참고하세요.