mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-05 12:25:35 +08:00
fix: add fallback for SERVER_PORT using PORT environment variable
This commit is contained in:
@@ -288,6 +288,8 @@ async function main() {
|
|||||||
// Apply CLI options to environment variables
|
// Apply CLI options to environment variables
|
||||||
if (options.serverPort) {
|
if (options.serverPort) {
|
||||||
process.env.SERVER_PORT = options.serverPort;
|
process.env.SERVER_PORT = options.serverPort;
|
||||||
|
} else if (!process.env.SERVER_PORT && process.env.PORT) {
|
||||||
|
process.env.SERVER_PORT = process.env.PORT;
|
||||||
}
|
}
|
||||||
if (options.databasePath) {
|
if (options.databasePath) {
|
||||||
process.env.DATABASE_PATH = options.databasePath;
|
process.env.DATABASE_PATH = options.databasePath;
|
||||||
|
|||||||
Reference in New Issue
Block a user