fix umi dev server app_root path bug

This commit is contained in:
silenceqi 2020-03-14 17:27:08 +08:00
parent 0e8f1b6082
commit 52c99cfb08
1 changed files with 2 additions and 2 deletions

View File

@ -36,9 +36,9 @@ module.exports = appInfo => {
autoPort: true, autoPort: true,
command: 'umi dev --port={port}', command: 'umi dev --port={port}',
env: { env: {
APP_ROOT: process.cwd() + '/app/web', APP_ROOT: path.resolve('app/web'),
BROWSER: 'none', BROWSER: 'none',
SOCKET_SERVER: 'http://192.168.5.102:{port}', SOCKET_SERVER: 'http://127.0.0.1:{port}',
}, },
debug: true, debug: true,
}, },