[Optimize] Fix bundlesPath by resolving optimize dir (#14309)
* [Optimize] Fix bundlesPath by prefixing optimize.bundleDir with slash * [Optimize] Fix bundlesPath by resolving optimize dir * [Optimize] Fix bundlesPath by resolving optimize dir
This commit is contained in:
parent
c7b095d9da
commit
1fb8c82da7
|
@ -1,5 +1,6 @@
|
||||||
import { esTestConfig } from '../../src/test_utils/es';
|
import { esTestConfig } from '../../src/test_utils/es';
|
||||||
import { kibanaTestServerUrlParts } from '../../test/kibana_test_server_url_parts';
|
import { kibanaTestServerUrlParts } from '../../test/kibana_test_server_url_parts';
|
||||||
|
import { resolve } from 'path';
|
||||||
|
|
||||||
const SECOND = 1000;
|
const SECOND = 1000;
|
||||||
const MINUTE = 60 * SECOND;
|
const MINUTE = 60 * SECOND;
|
||||||
|
@ -134,7 +135,7 @@ module.exports = function (grunt) {
|
||||||
'--no-base-path',
|
'--no-base-path',
|
||||||
'--optimize.lazyPort=5611',
|
'--optimize.lazyPort=5611',
|
||||||
'--optimize.lazyPrebuild=true',
|
'--optimize.lazyPrebuild=true',
|
||||||
'--optimize.bundleDir=optimize/testUiServer',
|
'--optimize.bundleDir=' + resolve(__dirname, '../../optimize/testUiServer'),
|
||||||
...kbnServerFlags,
|
...kbnServerFlags,
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -171,7 +172,7 @@ module.exports = function (grunt) {
|
||||||
'--server.port=5610',
|
'--server.port=5610',
|
||||||
'--optimize.lazyPort=5611',
|
'--optimize.lazyPort=5611',
|
||||||
'--optimize.lazyPrebuild=true',
|
'--optimize.lazyPrebuild=true',
|
||||||
'--optimize.bundleDir=optimize/testdev',
|
'--optimize.bundleDir=' + resolve(__dirname, '../../optimize/testdev'),
|
||||||
...kbnServerFlags,
|
...kbnServerFlags,
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue