You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: server/index.js
+7-9
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,15 @@ var cors = require('cors');
7
7
varmoment=require('moment');// require
8
8
constdecompress=require('decompress');
9
9
constarchiver=require('archiver');
10
-
constaxios=require('axios');
11
10
constresponseMessages=[];
12
11
require('dotenv').config();
13
12
14
13
// CONFIGURATION
15
-
PORT=6040;// the Express server will run on this port.
16
-
UPLOAD_PATH=process.env.SERVER_CURR_ENV!=='#{CURR_ENV}#' ? process.env.SERVER_UPLOAD_PATH : './files';// files uploaded from the app will be uploaded to this folder (deleted after processing)
17
-
TARGET_PATH=process.env.SERVER_CURR_ENV!=='#{CURR_ENV}#' ? process.env.SERVER_TARGET_PATH : './public';// ZIP files in the UPLOAD_PATH folder will be extracted here.
18
-
LOG_PATH=process.env.SERVER_CURR_ENV!=='#{CURR_ENV}#' ? process.env.SERVER_LOG_PATH : './logfile.txt';// the path to the logfile
PORT=process.env.port ? process.env.port : 6040;// the Express server will run on this port.
15
+
UPLOAD_PATH=process.env.SERVER_CURR_ENV&&process.env.SERVER_CURR_ENV!=='#{CURR_ENV}#' ? process.env.SERVER_UPLOAD_PATH : './files';// files uploaded from the app will be uploaded to this folder (deleted after processing)
16
+
TARGET_PATH=process.env.SERVER_CURR_ENV&&process.env.SERVER_CURR_ENV!=='#{CURR_ENV}#' ? process.env.SERVER_TARGET_PATH : './public';// ZIP files in the UPLOAD_PATH folder will be extracted here.
17
+
LOG_PATH=process.env.SERVER_CURR_ENV&&process.env.SERVER_CURR_ENV!=='#{CURR_ENV}#' ? process.env.SERVER_LOG_PATH : './logfile.txt';// the path to the logfile
0 commit comments