- Created Test Environment un Server test.freeplanet.app
- mongodb open 2 connections port (3000 and 3001) - 27017 and 27018
This commit is contained in:
7
.gitignore
vendored
7
.gitignore
vendored
@@ -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
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user