updating nodebb executable so that it sends a NODE_ENV environment

variable in, and modified app.js and redis lib to read it.
This commit is contained in:
Julian Lam
2013-06-21 13:28:55 -04:00
parent f91e0848ee
commit 4d99870063
6 changed files with 32 additions and 28 deletions

4
nodebb
View File

@@ -1,4 +1,4 @@
#!/bin/bash
clear
echo "Launching NodeBB"
supervisor --extensions 'node|js|tpl' -- app $1
echo "Launching NodeBB in \"development\" mode"
NODE_ENV=development supervisor --extensions 'node|js|tpl' -- app $1