@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 +15 -15
- package/README.md +16 -15
- package/bundle/web-dist/client/assets/{index-ioEghlNo.js → index-X4A9Xo_5.js} +3 -3
- package/bundle/web-dist/client/assets/{logs-TGA3XE4C.js → logs-BK0afqFW.js} +1 -1
- package/bundle/web-dist/client/assets/{monit-DLynJGca.js → monit-D-lgl5dR.js} +1 -1
- package/bundle/web-dist/client/assets/{routes-DugjmKS_.js → routes-CyRdgbvG.js} +1 -1
- package/bundle/web-dist/client/assets/{show-DSswR7Cy.js → show-DpxKqqVU.js} +1 -1
- package/bundle/web-dist/client/assets/{tokens-C5djVO__.js → tokens-9eO1FvFK.js} +1 -1
- package/bundle/web-dist/client/index.html +1 -1
- package/bundle/web-dist/server/entry-server.generated.js +1 -1
- package/dist/cli.js +29 -6
- package/package.json +1 -1
- package/skills/qgrid/references/cli-env-and-server-boot.md +23 -7
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
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
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는
|
|
54
|
-
`NODE_ENV=production`이고, 원격 비프로덕션 서비스로
|
|
55
|
-
`NODE_ENV=staging`을 지정하면 됨. 이 프로필 선택은
|
|
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
|
-
| `
|
|
89
|
-
| `
|
|
90
|
-
| `
|
|
91
|
-
| `
|
|
92
|
-
| `
|
|
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
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
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
|
|
54
|
-
to `NODE_ENV=production`;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
| `
|
|
89
|
-
| `
|
|
90
|
-
| `
|
|
91
|
-
| `
|
|
92
|
-
| `
|
|
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
|
|