- Created Test Environment un Server test.freeplanet.app

- mongodb open 2 connections port (3000 and 3001) - 27017 and 27018
This commit is contained in:
Paolo Arena
2019-02-13 01:51:59 +01:00
parent 259e2dc4e2
commit 06635c87d4
4 changed files with 13 additions and 2 deletions

View File

@@ -13,9 +13,13 @@ importScripts('../statics/js/idb.js');
importScripts('../statics/js/storage.js');
let port = 3001;
if (self.location.hostname === 'localhost') {
port = 3000;
}
// console.log('SW-06 1');
const cfgenv = {
serverweb: self.location.protocol + "//" + self.location.hostname + ':3000',
serverweb: self.location.protocol + "//" + self.location.hostname + ':' + port,
dbname: 'mydb3',
dbversion: 11,
}