1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

update dev script

This commit is contained in:
杨顺强
2025-03-21 17:34:17 +08:00
parent 39aac08f3d
commit 67e78e76e3

View File

@@ -22,8 +22,10 @@ const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
// );
// reset by custom
const HOST = '127.0.0.1';
const PORT = process.env.PORT || '3000';
const CONFIG_HOST = process.env.HOST;
const isRunInDocker = CONFIG_HOST === '0.0.0.0';
const HOST = isRunInDocker ? '127.0.0.1' : CONFIG_HOST;
const PORT = process.env.PORT || '3001';
const publicPath = process.env.PUBLIC_PATH || '/assets/bundles/';
const publicUrlOrPath = `http://${HOST}:${PORT}${publicPath}`;