mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-12 21:30:39 +00:00
update dev script
This commit is contained in:
@@ -22,8 +22,10 @@ const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
|
|||||||
// );
|
// );
|
||||||
|
|
||||||
// reset by custom
|
// reset by custom
|
||||||
const HOST = '127.0.0.1';
|
const CONFIG_HOST = process.env.HOST;
|
||||||
const PORT = process.env.PORT || '3000';
|
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 publicPath = process.env.PUBLIC_PATH || '/assets/bundles/';
|
||||||
const publicUrlOrPath = `http://${HOST}:${PORT}${publicPath}`;
|
const publicUrlOrPath = `http://${HOST}:${PORT}${publicPath}`;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user