mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
fix(web): align dev server node runtime
This commit is contained in:
1 parent
eebb428dd3
commit
e3370b52c2
6 files changed
+44
-28
No files matched your search
+3
-3
@@ -8,7 +8,7 @@ import * as fs from 'fs'
|
||||
import * as path from 'path'
|
||||
import { execSync } from 'child_process'
|
||||
import { Command } from 'commander'
|
||||
import { loadConfig, getConfigPath } from '@openchatlab/config'
|
||||
import { DEFAULT_API_PORT, loadConfig, getConfigPath } from '@openchatlab/config'
|
||||
import {
|
||||
NodePathProvider,
|
||||
DatabaseManager,
|
||||
@@ -276,7 +276,7 @@ program
|
||||
program
|
||||
.command('serve')
|
||||
.description('Start the HTTP API server')
|
||||
.option('--port <port>', 'Server port', '3110')
|
||||
.option('--port <port>', 'Server port', String(DEFAULT_API_PORT))
|
||||
.option('--host <host>', 'Listen address', '127.0.0.1')
|
||||
.option('--token <token>', 'Custom Bearer Token (reads from config or auto-generates if omitted)')
|
||||
.option('--web [dir]', 'Serve Web frontend static assets (defaults to dist-web/)')
|
||||
@@ -335,7 +335,7 @@ program
|
||||
program
|
||||
.command('web')
|
||||
.description('Launch Web UI with one click (HTTP API + browser auto-open)')
|
||||
.option('--port <port>', 'Server port', '3110')
|
||||
.option('--port <port>', 'Server port', String(DEFAULT_API_PORT))
|
||||
.option('--host <host>', 'Listen address', '127.0.0.1')
|
||||
.option('--no-open', 'Do not auto-open browser')
|
||||
.action(async (options) => {
|
||||
|
||||
Reference in new issue
Block a user