Fix id_point type and default port

Signed-off-by: Lucas Fernandes de Oliveira's avatarLucas Fernandes de Oliveira <lfoliveira@inf.ufpr.br>
parent 8887b882
......@@ -31,7 +31,7 @@ CREATE TABLE inventory (
CREATE TABLE net_usage (
contact_date DATE
, id_point INTEGER
, id_point TEXT -- For some reason they want to use INEP as ID (which is a string)
, macaddr MACADDR
, collect_date DATE
, collect_time TIME WITH TIME ZONE
......
......@@ -76,7 +76,7 @@ catch (e) {
}
var devMode = argv.dev || (process.env.NODE_ENV && (process.env.NODE_ENV.slice(0,3) === 'dev'));
var port = parseInt(argv.port || argv.p || process.env.PORT) || 3000;
var port = parseInt(argv.port || argv.p || process.env.PORT) || 4900;
var numWorkers = parseInt(argv['num-workers'] || argv.n) || (os.cpus().length * 2);
var daemon = argv.daemon || argv.d || false;
var pidfile = argv['pid-file'] || config.pid_file || process.env.PID_FILE || path.resolve('.', 'simmc.pid');
......
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