DBP remote changes (suspended log in IR, updated packages)
This commit is contained in:
23
ecosystem.config.js
Normal file
23
ecosystem.config.js
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
module.exports = {
|
||||||
|
apps : [{
|
||||||
|
script: 'dht.js',
|
||||||
|
watch: ['.'],
|
||||||
|
ignore_watch : ["dht.log"],
|
||||||
|
},{
|
||||||
|
script: '../node/corona.js'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
deploy : {
|
||||||
|
production : {
|
||||||
|
user : 'SSH_USERNAME',
|
||||||
|
host : 'SSH_HOSTMACHINE',
|
||||||
|
ref : 'origin/master',
|
||||||
|
repo : 'GIT_REPOSITORY',
|
||||||
|
path : 'DESTINATION_PATH',
|
||||||
|
'pre-deploy-local': '',
|
||||||
|
'post-deploy' : 'npm install && pm2 reload ecosystem.config.js --env production',
|
||||||
|
'pre-setup': ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
1245
package-lock.json
generated
1245
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -31,9 +31,9 @@
|
|||||||
"express-session": "^1.17.1",
|
"express-session": "^1.17.1",
|
||||||
"helmet": "3.21.3",
|
"helmet": "3.21.3",
|
||||||
"log4js": "^6.3.0",
|
"log4js": "^6.3.0",
|
||||||
"moment": "^2.26.0",
|
"moment": "^2.27.0",
|
||||||
"moment-timezone": "^0.5.31",
|
"moment-timezone": "^0.5.31",
|
||||||
"mongoose": "^5.9.18",
|
"mongoose": "^5.9.19",
|
||||||
"morgan": "^1.10.0",
|
"morgan": "^1.10.0",
|
||||||
"mosca": "^2.8.3",
|
"mosca": "^2.8.3",
|
||||||
"mqtt": "^4.1.0",
|
"mqtt": "^4.1.0",
|
||||||
@@ -47,6 +47,7 @@
|
|||||||
"passport-cookie": "^1.0.8",
|
"passport-cookie": "^1.0.8",
|
||||||
"passport-local": "^1.0.0",
|
"passport-local": "^1.0.0",
|
||||||
"plaintextparser": "^1.0.3",
|
"plaintextparser": "^1.0.3",
|
||||||
|
"pm2": "^4.4.0",
|
||||||
"request": "^2.88.2",
|
"request": "^2.88.2",
|
||||||
"sequelize": "^5.21.13",
|
"sequelize": "^5.21.13",
|
||||||
"sequelize-cli": "^5.5.1",
|
"sequelize-cli": "^5.5.1",
|
||||||
|
|||||||
@@ -82,9 +82,9 @@ function GetDht() {
|
|||||||
}
|
}
|
||||||
module.exports.html_handle_dht = function (req, res){
|
module.exports.html_handle_dht = function (req, res){
|
||||||
try {
|
try {
|
||||||
console.log("body:"+util.inspect(req.body));
|
//!console.log("body:"+util.inspect(req.body));
|
||||||
var cmd = req.param('e');
|
var cmd = req.param('e');
|
||||||
console.log("cmd:" + cmd);
|
//!console.log("cmd:" + cmd);
|
||||||
//console.log("HEADERS:" + util.inspect(req.headers));
|
//console.log("HEADERS:" + util.inspect(req.headers));
|
||||||
switch(cmd)
|
switch(cmd)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user