mirror of
https://github.com/langgenius/dify.git
synced 2026-06-07 16:32:01 +08:00
fix(web): read pnpm config env in standalone start (#36887)
This commit is contained in:
parent
86497045c9
commit
becccbf288
@ -94,8 +94,8 @@ const main = async () => {
|
|||||||
await copyAllDirs(standaloneRoot)
|
await copyAllDirs(standaloneRoot)
|
||||||
|
|
||||||
// Start server
|
// Start server
|
||||||
const port = process.env.npm_config_port || process.env.PORT || '3000'
|
const port = process.env.pnpm_config_port || process.env.PORT || '3000'
|
||||||
const host = process.env.npm_config_host || process.env.HOSTNAME || '0.0.0.0'
|
const host = process.env.pnpm_config_host || process.env.HOSTNAME || '0.0.0.0'
|
||||||
|
|
||||||
console.info(`Starting server on ${host}:${port}`)
|
console.info(`Starting server on ${host}:${port}`)
|
||||||
console.debug(`Server script path: ${serverScriptPath}`)
|
console.debug(`Server script path: ${serverScriptPath}`)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user