diff --git a/server.js b/server.js index 47b1d8a149ba7b1ee859833eb74dc2760654e448..544c4f1d3e51764c3163ad961033161e6ca2319e 100644 --- a/server.js +++ b/server.js @@ -15,8 +15,8 @@ const polycalc = require('./codepoly.js'); // const { isEmptyObject } = require('jquery'); //console.log(polycalc) app.use(express.static('vcm')); -app.listen(process.env.PORT || 8083); -console.log("on 8083"); +app.listen(process.env.PORT || 8081); +console.log("on 8081"); // parse application/x-www-form-urlencoded @@ -976,7 +976,7 @@ const connection = { user: 'postgres', // name of the user account database: 'NoiseSensorData', // name of the database -- NoiseSensorData password: 'ahpk94meteor', // env var: PGPASSWORD -- ahpk94meteor - host: '193.196.38.112', // Server hosting the postgres database (host: '35.187.21.114') -- 193.196.38.112 + host: '193.196.39.87', // Server hosting the postgres database (host: '35.187.21.114') -- 193.196.38.112 port: 5432, // env var: PGPORT max: 10, // max number of clients in the pool idleTimeoutMillis: 30000 // how long a client is allowed to remain idle before being closed @@ -1077,7 +1077,7 @@ const connectionFav = { user: 'postgres', // name of the user account database: 'FavoritPlaces', // name of the database password: 'ahpk94meteor', // env var: PGPASSWORD - host: '193.196.38.112', // Server hosting the postgres database (host: '35.187.21.114') + host: '193.196.39.87', // Server hosting the postgres database (host: '35.187.21.114') port: 5432, // env var: PGPORT max: 10, // max number of clients in the pool idleTimeoutMillis: 30000 // how long a client is allowed to remain idle before being closed