Commit 60433c99f4b12b74e0f1538ceb8a098031ec8b49

Authored by Eric
1 parent 532685f339
Exists in master

config json

Showing 2 changed files with 10 additions and 5 deletions   Show diff stats
config/config.ejemplo.json
1 1 {
2   - "port": 6544,
3   - "direccion": "fipdebo.ddns.net"
  2 + "servidorveeder": {
  3 + "port": 6544,
  4 + "direccion": "fipdebo.ddns.net"
  5 + },
  6 + "servidornode": {
  7 + "port": 4500
  8 + }
4 9 }
... ... @@ -4,11 +4,11 @@ const app = express();
4 4 const config = require('./config/config.json');
5 5 const socket = require('./socket/socket.js');
6 6  
7   -const port = config.puerto;
8   -const host = config.direccion;
  7 +const port = config.servidorveeder.port;
  8 +const host = config.servidorveeder.direccion;
9 9 var fecha;
10 10  
11   -app.listen(4500)
  11 +app.listen(config.servidornode.port);
12 12  
13 13 app.get('/tank-info/:tank*?', function (req, res) {
14 14