Skip to content

Commit

Permalink
[Optimize] Fix bundlesPath by resolving optimize dir (#14309)
Browse files Browse the repository at this point in the history
* [Optimize] Fix bundlesPath by prefixing optimize.bundleDir with slash

* [Optimize] Fix bundlesPath by resolving optimize dir

* [Optimize] Fix bundlesPath by resolving optimize dir
  • Loading branch information
archanid authored and archanid committed Oct 4, 2017
1 parent 47df572 commit e6b6d22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tasks/config/run.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { esTestConfig } from '../../src/test_utils/es';
import { kibanaTestServerUrlParts } from '../../test/kibana_test_server_url_parts';
import { resolve } from 'path';

const SECOND = 1000;
const MINUTE = 60 * SECOND;
Expand Down Expand Up @@ -134,7 +135,7 @@ module.exports = function (grunt) {
'--no-base-path',
'--optimize.lazyPort=5611',
'--optimize.lazyPrebuild=true',
'--optimize.bundleDir=optimize/testUiServer',
'--optimize.bundleDir=' + resolve(__dirname, '../../optimize/testUiServer'),
...kbnServerFlags,
]
},
Expand Down Expand Up @@ -171,7 +172,7 @@ module.exports = function (grunt) {
'--server.port=5610',
'--optimize.lazyPort=5611',
'--optimize.lazyPrebuild=true',
'--optimize.bundleDir=optimize/testdev',
'--optimize.bundleDir=' + resolve(__dirname, '../../optimize/testdev'),
...kbnServerFlags,
]
},
Expand Down

0 comments on commit e6b6d22

Please sign in to comment.