- 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
|
.thumbs.db
|
||||||
.env
|
.env
|
||||||
.env.production
|
.env.production
|
||||||
|
.env.production.bak
|
||||||
|
.env.prod.bak
|
||||||
|
.env.test
|
||||||
node_modules
|
node_modules
|
||||||
/dist
|
/dist
|
||||||
/src-cordova/node_modules
|
/src-cordova/node_modules
|
||||||
@@ -28,4 +31,6 @@ coverage
|
|||||||
/_PROVE
|
/_PROVE
|
||||||
/_LOCALE
|
/_LOCALE
|
||||||
deploy.sh
|
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": "quasar serve ./dist/pwa-mat",
|
||||||
"serve:coverage": "quasar serve test/coverage/lcov-report/ --cache 0 --port 8788",
|
"serve:coverage": "quasar serve test/coverage/lcov-report/ --cache 0 --port 8788",
|
||||||
"deploy": "deploy.sh",
|
"deploy": "deploy.sh",
|
||||||
|
"deploy_server_test": "NODE_ENV=test quasar build -m pwa",
|
||||||
"generate-sw": "workbox generateSW workbox-config.js"
|
"generate-sw": "workbox generateSW workbox-config.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -195,6 +195,7 @@ module.exports = function (ctx) {
|
|||||||
},
|
},
|
||||||
manifest: {
|
manifest: {
|
||||||
name: 'Free Planet',
|
name: 'Free Planet',
|
||||||
|
version: '0.0.14',
|
||||||
short_name: 'freeplanet',
|
short_name: 'freeplanet',
|
||||||
description: 'Social project in order to connecting people each others (working in progress...)',
|
description: 'Social project in order to connecting people each others (working in progress...)',
|
||||||
display: 'standalone',
|
display: 'standalone',
|
||||||
|
|||||||
@@ -13,9 +13,13 @@ importScripts('../statics/js/idb.js');
|
|||||||
importScripts('../statics/js/storage.js');
|
importScripts('../statics/js/storage.js');
|
||||||
|
|
||||||
|
|
||||||
|
let port = 3001;
|
||||||
|
if (self.location.hostname === 'localhost') {
|
||||||
|
port = 3000;
|
||||||
|
}
|
||||||
// console.log('SW-06 1');
|
// console.log('SW-06 1');
|
||||||
const cfgenv = {
|
const cfgenv = {
|
||||||
serverweb: self.location.protocol + "//" + self.location.hostname + ':3000',
|
serverweb: self.location.protocol + "//" + self.location.hostname + ':' + port,
|
||||||
dbname: 'mydb3',
|
dbname: 'mydb3',
|
||||||
dbversion: 11,
|
dbversion: 11,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user