Added dotenv

This commit is contained in:
AlexKvazos
2015-04-30 13:05:58 -05:00
parent e09f3ac44c
commit b9d2ad59f4
4 changed files with 10 additions and 3 deletions
+3
View File
@@ -0,0 +1,3 @@
REDIS_HOST=localhost
REDIS_PORT=6379
PORT=3000
+1
View File
@@ -1,3 +1,4 @@
node_modules/ node_modules/
public/js/ public/js/
*.log *.log
.env
+3
View File
@@ -5,6 +5,9 @@
* @copyright AlexKvazos 2015 * @copyright AlexKvazos 2015
*/ */
// load environment files from .env file
require('dotenv').load();
// create new express application // create new express application
var express = require('express'); var express = require('express');
var app = express(); var app = express();
+2 -2
View File
@@ -5,12 +5,12 @@
"main": "app/server", "main": "app/server",
"dependencies": { "dependencies": {
"debug": "^2.1.3", "debug": "^2.1.3",
"dotenv": "^1.1.0",
"express": "^4.12.3", "express": "^4.12.3",
"grunt": "^0.4.5", "grunt": "^0.4.5",
"grunt-browserify": "^3.7.0", "grunt-browserify": "^3.7.0",
"grunt-contrib-uglify": "^0.9.1", "grunt-contrib-uglify": "^0.9.1",
"mineflayer": "git@github.com:andrewrk/mineflayer.git", "mineflayer": "git@github.com:andrewrk/mineflayer.git",
"node-mojangson": "^0.1.0",
"socket.io": "^1.3.5" "socket.io": "^1.3.5"
}, },
"devDependencies": {}, "devDependencies": {},
@@ -29,7 +29,7 @@
"web" "web"
], ],
"author": "AlexKvazos", "author": "AlexKvazos",
"license": "Propietary Software", "license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/MCBoard/chat.alexkvazos.com/issues" "url": "https://github.com/MCBoard/chat.alexkvazos.com/issues"
}, },