Commit 83070364 authored by Rodrigo Tapia-McClung's avatar Rodrigo Tapia-McClung

Update app name and port

parent 2f079692
......@@ -11,7 +11,7 @@ cp config/dbconfig.example.json config/dbconfig.json
# Editar config/dbconfig.json para tu base de datos de PostGIS
node pgserver.js
node denue.js
o
......
{
"port": 8093
}
\ No newline at end of file
{
"port": 8090
}
\ No newline at end of file
const pgserverconfig = require('./config/pgserver.json')
const denueconfig = require('./config/denue.json')
const express = require('express');
const logger = require('morgan');
......@@ -37,9 +37,9 @@ const query = require('./query.js')(app, readOnlyPool);
const geojsonmvt = require('./geojsonmvt.js')(app, readOnlyPool);
const mbtiles = require('./mbtiles.js')(app, readOnlyPool);
const server = app.listen(pgserverconfig.port);
const server = app.listen(denueconfig.port);
server.setTimeout(600000);
console.log(`pgserver listening on port ${pgserverconfig.port}`);
console.log(`denue-tiles listening on port ${denueconfig.port}`);
module.exports = app;
{
"name": "pgserver",
"name": "denue-tiles",
"version": "0.0.0",
"description": "PGserver receives, converts and serves geo-data between postgis and http-clients.",
"main": "pgserver.js",
"scripts": {
"dev": "nodemon pgserver.js",
"start": "node pgserver.js",
"dev": "nodemon denue.js",
"start": "node denue.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"nodemonConfig": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment