From 9339e6269d6f5a5d0421c23c5e9ba3c8500fb535 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 18 Oct 2015 16:44:27 +0200 Subject: wip --- src/config.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/config.js (limited to 'src') diff --git a/src/config.js b/src/config.js new file mode 100644 index 0000000..949c284 --- /dev/null +++ b/src/config.js @@ -0,0 +1,12 @@ +function isProd() { + return process.env.NODE_ENV == 'prod'; +} + +var mqttUrl = process.env.MQTT_URL || 'mqtt://trygvis.io'; +var postgresqlUrl = process.env.DATABASE_URL || 'postgres://diller:diller@localhost:5432/diller'; + +module.exports = { + isProd: isProd, + mqttUrl: mqttUrl, + postgresqlUrl: postgresqlUrl +} -- cgit v1.2.3