mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 10:15:24 +01:00
Fix for running within docker.
This commit is contained in:
parent
dbe2c2637e
commit
050e22918a
1 changed files with 4 additions and 3 deletions
|
@ -25,7 +25,8 @@ exports.config = {
|
||||||
coloredLogs: true,
|
coloredLogs: true,
|
||||||
bail: 0,
|
bail: 0,
|
||||||
screenshotPath: SCREENSHOT_PATH,
|
screenshotPath: SCREENSHOT_PATH,
|
||||||
host: (isDocker() ? process.env.DOCKER_HOST : "127.0.0.1"),
|
// Note: This is here because @orangemug currently runs Maputnik inside a docker container.
|
||||||
|
host: (isDocker() ? "host.docker.internal" : "0.0.0.0"),
|
||||||
baseUrl: 'http://localhost',
|
baseUrl: 'http://localhost',
|
||||||
waitforTimeout: 10000,
|
waitforTimeout: 10000,
|
||||||
connectionRetryTimeout: 90000,
|
connectionRetryTimeout: 90000,
|
||||||
|
@ -45,9 +46,9 @@ exports.config = {
|
||||||
colors: true
|
colors: true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
server.listen(testConfig.port, "127.0.0.1", function(err) {
|
server.listen(testConfig.port, (isDocker() ? "0.0.0.0" : "localhost"), function(err) {
|
||||||
if(err) {
|
if(err) {
|
||||||
reject();
|
reject(err);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
resolve();
|
resolve();
|
||||||
|
|
Loading…
Reference in a new issue