@cartanova/qgrid-cli 2.4.9 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.ko.md CHANGED
@@ -42,19 +42,19 @@ qgrid --db postgres://user:password@host:port/dbname
42
42
  qgrid --db postgres://... -p 3000
43
43
 
44
44
  # 환경변수로 DB 설정 (플래그 생략 가능)
45
- export SONAMU_DB_HOST=dev.example.com
46
- export SONAMU_DB_PORT=5432
47
- export SONAMU_DB_USER=postgres
48
- export SONAMU_DB_PASSWORD=postgres
49
- export SONAMU_DB_NAME=qgrid
45
+ export QGRID_DB_HOST=dev.example.com
46
+ export QGRID_DB_PORT=5432
47
+ export QGRID_DB_USER=postgres
48
+ export QGRID_DB_PASSWORD=postgres
49
+ export QGRID_DB_NAME=qgrid
50
50
  qgrid
51
51
  ```
52
52
 
53
- CLI는 Sonamu의 네이티브 `SONAMU_DB_*` 설정을 사용함. 패키징된 CLI의 기본값은
54
- `NODE_ENV=production`이고, 원격 비프로덕션 서비스로 운영할 때만
55
- `NODE_ENV=staging`을 지정하면 됨. 이 프로필 선택은 `SONAMU_DB_NAME`으로
56
- 지정한 DB를 새로 만들거나 이름을 바꾸지 않음. 소스 개발 레이아웃이 필요한
57
- `development`와 `test`는 패키징된 CLI에서 거부함.
53
+ CLI는 공개 설정인 `QGRID_DB_*`를 Sonamu 내부의 `SONAMU_DB_*`로 변환함.
54
+ 패키징된 CLI의 기본값은 `NODE_ENV=production`이고, 원격 비프로덕션 서비스로
55
+ 운영할 때만 `NODE_ENV=staging`을 지정하면 됨. 이 프로필 선택은
56
+ `QGRID_DB_NAME`으로 지정한 DB를 새로 만들거나 이름을 바꾸지 않음. 소스 개발
57
+ 레이아웃이 필요한 `development`와 `test`는 패키징된 CLI에서 거부함.
58
58
 
59
59
  서버가 뜨면 `http://localhost:44900`에서 대시보드 접속 → OAuth 로그인으로 토큰 등록.
60
60
  `-p, --port`를 지정하면 해당 포트로 접속.
@@ -85,11 +85,11 @@ CLI는 실행 시 npm의 최신 버전을 확인하고 patch를 포함해 설치
85
85
 
86
86
  | 변수 | 기본값 |
87
87
  |------|--------|
88
- | `SONAMU_DB_HOST` | `localhost` |
89
- | `SONAMU_DB_PORT` | `5432` |
90
- | `SONAMU_DB_USER` | `postgres` |
91
- | `SONAMU_DB_PASSWORD` | `postgres` |
92
- | `SONAMU_DB_NAME` | `qgrid` |
88
+ | `QGRID_DB_HOST` | `localhost` |
89
+ | `QGRID_DB_PORT` | `5432` |
90
+ | `QGRID_DB_USER` | `postgres` |
91
+ | `QGRID_DB_PASSWORD` | `postgres` |
92
+ | `QGRID_DB_NAME` | `qgrid` |
93
93
 
94
94
  서버 동작 관련 환경변수:
95
95
 
package/README.md CHANGED
@@ -42,19 +42,20 @@ qgrid --db postgres://user:password@host:port/dbname
42
42
  qgrid --db postgres://... -p 3000
43
43
 
44
44
  # Configure the DB with environment variables (flags can be omitted)
45
- export SONAMU_DB_HOST=dev.example.com
46
- export SONAMU_DB_PORT=5432
47
- export SONAMU_DB_USER=postgres
48
- export SONAMU_DB_PASSWORD=postgres
49
- export SONAMU_DB_NAME=qgrid
45
+ export QGRID_DB_HOST=dev.example.com
46
+ export QGRID_DB_PORT=5432
47
+ export QGRID_DB_USER=postgres
48
+ export QGRID_DB_PASSWORD=postgres
49
+ export QGRID_DB_NAME=qgrid
50
50
  qgrid
51
51
  ```
52
52
 
53
- The CLI uses Sonamu's native `SONAMU_DB_*` variables. The packaged CLI defaults
54
- to `NODE_ENV=production`; set `NODE_ENV=staging` only when intentionally running
55
- it as a remote non-production service. This profile selection never creates or
56
- renames the database selected by `SONAMU_DB_NAME`. The packaged CLI rejects
57
- `development` and `test`, which require the source development layout.
53
+ The CLI translates the public `QGRID_DB_*` settings into Sonamu's internal
54
+ `SONAMU_DB_*` variables. The packaged CLI defaults to `NODE_ENV=production`;
55
+ set `NODE_ENV=staging` only when intentionally running it as a remote
56
+ non-production service. This profile selection never creates or renames the
57
+ database selected by `QGRID_DB_NAME`. The packaged CLI rejects `development`
58
+ and `test`, which require the source development layout.
58
59
 
59
60
  Once the server is up, open the dashboard at `http://localhost:44900` → register tokens through OAuth login.
60
61
  With `-p, --port` set, connect on that port instead.
@@ -85,11 +86,11 @@ Without the `--db` flag, DB connection info is read from:
85
86
 
86
87
  | Variable | Default |
87
88
  |------|--------|
88
- | `SONAMU_DB_HOST` | `localhost` |
89
- | `SONAMU_DB_PORT` | `5432` |
90
- | `SONAMU_DB_USER` | `postgres` |
91
- | `SONAMU_DB_PASSWORD` | `postgres` |
92
- | `SONAMU_DB_NAME` | `qgrid` |
89
+ | `QGRID_DB_HOST` | `localhost` |
90
+ | `QGRID_DB_PORT` | `5432` |
91
+ | `QGRID_DB_USER` | `postgres` |
92
+ | `QGRID_DB_PASSWORD` | `postgres` |
93
+ | `QGRID_DB_NAME` | `qgrid` |
93
94
 
94
95
  Server behavior variables:
95
96