- 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

7
.gitignore vendored
View File

@@ -3,6 +3,9 @@
.thumbs.db
.env
.env.production
.env.production.bak
.env.prod.bak
.env.test
node_modules
/dist
/src-cordova/node_modules
@@ -28,4 +31,6 @@ coverage
/_PROVE
/_LOCALE
deploy.sh
deploy_production.sh
deploy_on_production.sh
deploy_on_test_server.sh
send_to_production.sh

View File

@@ -21,6 +21,7 @@
"serve": "quasar serve ./dist/pwa-mat",
"serve:coverage": "quasar serve test/coverage/lcov-report/ --cache 0 --port 8788",
"deploy": "deploy.sh",
"deploy_server_test": "NODE_ENV=test quasar build -m pwa",
"generate-sw": "workbox generateSW workbox-config.js"
},
"dependencies": {

View File

@@ -195,6 +195,7 @@ module.exports = function (ctx) {
},
manifest: {
name: 'Free Planet',
version: '0.0.14',
short_name: 'freeplanet',
description: 'Social project in order to connecting people each others (working in progress...)',
display: 'standalone',

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,
}