diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-10-18 16:44:27 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-10-18 16:44:27 +0200 |
commit | 9339e6269d6f5a5d0421c23c5e9ba3c8500fb535 (patch) | |
tree | d4e89f81db55197df84836b7197fc35905315b99 /src | |
parent | cc0dcb25054e9dff3fdc4b58eaf861d35d0b06de (diff) | |
download | diller-server-9339e6269d6f5a5d0421c23c5e9ba3c8500fb535.tar.gz diller-server-9339e6269d6f5a5d0421c23c5e9ba3c8500fb535.tar.bz2 diller-server-9339e6269d6f5a5d0421c23c5e9ba3c8500fb535.tar.xz diller-server-9339e6269d6f5a5d0421c23c5e9ba3c8500fb535.zip |
wip
Diffstat (limited to 'src')
-rw-r--r-- | src/config.js | 12 |
1 files changed, 12 insertions, 0 deletions
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 +} |