Merge branch 'jskim-node' of https://g.wace.me/jskim/vexplor_dev into ycshin-node
This commit is contained in:
@@ -23,7 +23,7 @@ screen_layouts (V1) screen_layouts_v2 (V2)
|
||||
docker exec pms-backend-mac node -e '
|
||||
const { Pool } = require("pg");
|
||||
const pool = new Pool({
|
||||
connectionString: "postgresql://postgres:vexplor0909!!@211.115.91.141:11134/plm?sslmode=disable",
|
||||
connectionString: "postgresql://postgres:$DB_PASSWORD@211.115.91.141:11134/plm?sslmode=disable",
|
||||
ssl: false
|
||||
});
|
||||
// 쿼리 실행
|
||||
|
||||
@@ -177,7 +177,7 @@ CREATE TABLE backup_20260323_screen_group_screens AS
|
||||
### STEP 1: 누락 테이블 생성 (배포 DB에서 psql 실행)
|
||||
|
||||
```bash
|
||||
PGPASSWORD='vexplor0909!!' psql -h 211.115.91.141 -p 11134 -U postgres -d plm
|
||||
PGPASSWORD='$DB_PASSWORD' psql -h 211.115.91.141 -p 11134 -U postgres -d plm
|
||||
```
|
||||
|
||||
#### 1-1. work_order_process
|
||||
@@ -366,7 +366,7 @@ COPY (
|
||||
) TO STDOUT WITH CSV HEADER" > /tmp/ttc_export.csv
|
||||
|
||||
# 배포 DB에 삽입 (충돌 시 무시)
|
||||
PGPASSWORD='vexplor0909!!' psql -h 211.115.91.141 -p 11134 -U postgres -d plm -c "
|
||||
PGPASSWORD='$DB_PASSWORD' psql -h 211.115.91.141 -p 11134 -U postgres -d plm -c "
|
||||
COPY table_type_columns FROM STDIN WITH CSV HEADER
|
||||
ON CONFLICT DO NOTHING" < /tmp/ttc_export.csv
|
||||
```
|
||||
@@ -386,7 +386,7 @@ COPY (
|
||||
) TO STDOUT WITH CSV HEADER" > /tmp/screen_def.csv
|
||||
|
||||
# 배포에 삽입
|
||||
PGPASSWORD='vexplor0909!!' psql -h 211.115.91.141 -p 11134 -U postgres -d plm -c "
|
||||
PGPASSWORD='$DB_PASSWORD' psql -h 211.115.91.141 -p 11134 -U postgres -d plm -c "
|
||||
COPY screen_definitions FROM STDIN WITH CSV HEADER
|
||||
ON CONFLICT DO NOTHING" < /tmp/screen_def.csv
|
||||
|
||||
@@ -400,7 +400,7 @@ COPY (
|
||||
) TO STDOUT WITH CSV HEADER" > /tmp/screen_layouts.csv
|
||||
|
||||
# 배포에 삽입
|
||||
PGPASSWORD='vexplor0909!!' psql -h 211.115.91.141 -p 11134 -U postgres -d plm -c "
|
||||
PGPASSWORD='$DB_PASSWORD' psql -h 211.115.91.141 -p 11134 -U postgres -d plm -c "
|
||||
COPY screen_layouts_pop (screen_id, company_code, layout_data, created_at, updated_at, created_by, updated_by)
|
||||
FROM STDIN WITH CSV HEADER
|
||||
ON CONFLICT (screen_id, company_code) DO NOTHING" < /tmp/screen_layouts.csv
|
||||
@@ -414,7 +414,7 @@ COPY (
|
||||
) TO STDOUT WITH CSV HEADER" > /tmp/screen_groups.csv
|
||||
|
||||
# 배포에 삽입
|
||||
PGPASSWORD='vexplor0909!!' psql -h 211.115.91.141 -p 11134 -U postgres -d plm -c "
|
||||
PGPASSWORD='$DB_PASSWORD' psql -h 211.115.91.141 -p 11134 -U postgres -d plm -c "
|
||||
COPY screen_groups FROM STDIN WITH CSV HEADER
|
||||
ON CONFLICT DO NOTHING" < /tmp/screen_groups.csv
|
||||
|
||||
@@ -427,7 +427,7 @@ COPY (
|
||||
) TO STDOUT WITH CSV HEADER" > /tmp/screen_group_screens.csv
|
||||
|
||||
# 배포에 삽입
|
||||
PGPASSWORD='vexplor0909!!' psql -h 211.115.91.141 -p 11134 -U postgres -d plm -c "
|
||||
PGPASSWORD='$DB_PASSWORD' psql -h 211.115.91.141 -p 11134 -U postgres -d plm -c "
|
||||
COPY screen_group_screens FROM STDIN WITH CSV HEADER
|
||||
ON CONFLICT DO NOTHING" < /tmp/screen_group_screens.csv
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
현재 `.env`에 설정된 키:
|
||||
```bash
|
||||
KMA_API_KEY=ogdXr2e9T4iHV69nvV-IwA
|
||||
KMA_API_KEY=${KMA_API_KEY}
|
||||
```
|
||||
|
||||
**사용 API:**
|
||||
@@ -105,7 +105,7 @@ nano .env
|
||||
|
||||
```bash
|
||||
# 기상청 API Hub 키 (기존 - 예특보 활용신청 완료 시 사용)
|
||||
KMA_API_KEY=ogdXr2e9T4iHV69nvV-IwA
|
||||
KMA_API_KEY=${KMA_API_KEY}
|
||||
|
||||
# 국토교통부 도로교통 API 키 (활용신청 완료 시 추가)
|
||||
MOLIT_TRAFFIC_API_KEY=여기에_발급받은_교통사고_API_인증키_붙여넣기
|
||||
|
||||
@@ -222,7 +222,7 @@ uploads/
|
||||
|
||||
### 필수 환경변수
|
||||
```bash
|
||||
ENCRYPTION_KEY=ilshin-plm-mail-encryption-key-32characters-2024-secure
|
||||
ENCRYPTION_KEY=${ENCRYPTION_KEY}
|
||||
```
|
||||
|
||||
### 필수 디렉토리
|
||||
|
||||
@@ -401,7 +401,7 @@ MailDesigner 통합 및 템플릿 저장/불러오기
|
||||
### 필수 환경변수
|
||||
```bash
|
||||
# docker/dev/docker-compose.backend.mac.yml
|
||||
ENCRYPTION_KEY=ilshin-plm-mail-encryption-key-32characters-2024-secure
|
||||
ENCRYPTION_KEY=${ENCRYPTION_KEY}
|
||||
```
|
||||
|
||||
### 저장 디렉토리 생성
|
||||
|
||||
Reference in New Issue
Block a user