Compare commits

...

3 Commits

Author SHA1 Message Date
ttipo 539fb8aa61 frontend: 로컬 vite 실행 경로 제거, Docker 단일 환경으로 정리
Deploy / deploy (push) Successful in 38s
- dev/preview 스크립트 제거 (Docker 빌드는 build만 사용)
- .env.example 안내를 .env.production 기준으로 갱신, .env.development 삭제

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 15:27:16 +09:00
ttipo b118a58b8f backend: 로컬 npm 실행 경로 제거, Docker 단일 환경으로 정리
- dev 스크립트(nodemon)와 dotenv 의존성/로드 코드 제거 (설정은 compose 환경변수로만 주입)
- backend/.env.example 삭제 - 환경변수 템플릿은 루트 .env.example로 일원화

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 15:25:38 +09:00
ttipo 32b5a8ed0e frontend: 미사용 PASSWORD_ADMIN 환경변수 제거
frontend 소스에서 참조하지 않는 죽은 설정 정리 (백엔드 슈퍼 패스워드 제거 후속)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 15:18:00 +09:00
6 changed files with 3 additions and 48 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", "body-parser": "^1.20.2",
"cookie-parser": "^1.4.7", "cookie-parser": "^1.4.7",
"cors": "^2.8.5", "cors": "^2.8.5",
"dotenv": "^17.3.1",
"express": "^4.18.2", "express": "^4.18.2",
"jsonwebtoken": "^9.0.3", "jsonwebtoken": "^9.0.3",
"multer": "^2.1.1", "multer": "^2.1.1",
@@ -990,18 +989,6 @@
"node": ">=6.0.0" "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": { "node_modules/dottie": {
"version": "2.0.7", "version": "2.0.7",
"resolved": "https://registry.npmjs.org/dottie/-/dottie-2.0.7.tgz", "resolved": "https://registry.npmjs.org/dottie/-/dottie-2.0.7.tgz",
-2
View File
@@ -5,7 +5,6 @@
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {
"start": "node server.js", "start": "node server.js",
"dev": "nodemon server.js",
"build": "node build.js" "build": "node build.js"
}, },
"dependencies": { "dependencies": {
@@ -14,7 +13,6 @@
"body-parser": "^1.20.2", "body-parser": "^1.20.2",
"cookie-parser": "^1.4.7", "cookie-parser": "^1.4.7",
"cors": "^2.8.5", "cors": "^2.8.5",
"dotenv": "^17.3.1",
"express": "^4.18.2", "express": "^4.18.2",
"jsonwebtoken": "^9.0.3", "jsonwebtoken": "^9.0.3",
"multer": "^2.1.1", "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 express = require("express");
const { Sequelize, DataTypes } = require("sequelize"); const { Sequelize, DataTypes } = require("sequelize");
const cors = require("cors"); const cors = require("cors");
+2 -4
View File
@@ -1,10 +1,8 @@
# ============================================================ # ============================================================
# frontend 환경 변수 템플릿 (Vite — 빌드 시점에 번들에 포함됨) # frontend 환경 변수 템플릿 (Vite — 빌드 시점에 번들에 포함됨)
# 복사해서 .env.development (로컬) / .env.production (배포 서버) 으로 만드세요. # 배포 서버에서 이 파일을 복사해 .env.production 으로 만드세요.
# 주의: VITE_ 변수는 브라우저에 노출되므로 비밀값을 넣으면 안 됩니다. # 주의: VITE_ 변수는 브라우저에 노출되므로 비밀값을 넣으면 안 됩니다.
# ============================================================ # ============================================================
# API 서버 주소 (로컬: http://localhost:3000, 운영: 실제 API 도메인) # API 서버 주소 (비워두면 same-origin — nginx가 /api를 backend로 프록시)
VITE_API_BASE_URL= VITE_API_BASE_URL=
PASSWORD_ADMIN=
+1 -3
View File
@@ -3,9 +3,7 @@
"version": "1.0.0", "version": "1.0.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite", "build": "vite build"
"build": "vite build",
"preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"chart.js": "^4.4.1", "chart.js": "^4.4.1",