backend: 로컬 npm 실행 경로 제거, Docker 단일 환경으로 정리

- dev 스크립트(nodemon)와 dotenv 의존성/로드 코드 제거 (설정은 compose 환경변수로만 주입)
- backend/.env.example 삭제 - 환경변수 템플릿은 루트 .env.example로 일원화

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 15:25:38 +09:00
parent 32b5a8ed0e
commit b118a58b8f
4 changed files with 0 additions and 41 deletions
-23
View File
@@ -1,23 +0,0 @@
# ============================================================
# backend 로컬 개발용 환경 변수 템플릿
# 복사해서 .env.development (로컬 개발) 로 만들고 값을 채우세요.
# 도커 배포 시에는 이 파일이 아니라 루트 .env 가 사용됩니다 (docker-compose 참고).
# ============================================================
# PostgreSQL (로컬 개발 시 docker-compose의 postgres를 쓰면 host는 localhost, 포트는 5442)
DB_PORT=5432
DB_HOST=localhost
DB_USER=postgres
DB_PASSWORD=
DB_NAME=report_db
# Admin Account (최초 기동 시 자동 생성되는 관리자 계정)
ADMIN_USER=
ADMIN_PASS=
# JWT Secrets (긴 무작위 문자열 사용)
ACCESS_SECRET=
REFRESH_SECRET=
# Gemini API Key
JEMINI_KEY=
-13
View File
@@ -13,7 +13,6 @@
"body-parser": "^1.20.2",
"cookie-parser": "^1.4.7",
"cors": "^2.8.5",
"dotenv": "^17.3.1",
"express": "^4.18.2",
"jsonwebtoken": "^9.0.3",
"multer": "^2.1.1",
@@ -990,18 +989,6 @@
"node": ">=6.0.0"
}
},
"node_modules/dotenv": {
"version": "17.3.1",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.3.1.tgz",
"integrity": "sha512-IO8C/dzEb6O3F9/twg6ZLXz164a2fhTnEWb95H23Dm4OuN+92NmEAlTrupP9VW6Jm3sO26tQlqyvyi4CsnY9GA==",
"license": "BSD-2-Clause",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://dotenvx.com"
}
},
"node_modules/dottie": {
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/dottie/-/dottie-2.0.7.tgz",
-2
View File
@@ -5,7 +5,6 @@
"main": "server.js",
"scripts": {
"start": "node server.js",
"dev": "nodemon server.js",
"build": "node build.js"
},
"dependencies": {
@@ -14,7 +13,6 @@
"body-parser": "^1.20.2",
"cookie-parser": "^1.4.7",
"cors": "^2.8.5",
"dotenv": "^17.3.1",
"express": "^4.18.2",
"jsonwebtoken": "^9.0.3",
"multer": "^2.1.1",
-3
View File
@@ -1,6 +1,3 @@
require("dotenv").config({
path: `.env.${process.env.NODE_ENV || "development"}`,
});
const express = require("express");
const { Sequelize, DataTypes } = require("sequelize");
const cors = require("cors");