diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-04-08 23:19:49 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-04-08 23:19:49 -0400 |
| commit | 2a4266fd00a0b1327a7b24ee9807b94f0060a118 (patch) | |
| tree | 316b74a259ecd3ba5bafbe89f9cbfdf30b8d4159 /app/index.js | |
| parent | bae6a32b83209846b2a6a757c0c414d537c157b2 (diff) | |
load environment with dotenv
Diffstat (limited to 'app/index.js')
| -rw-r--r-- | app/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/index.js b/app/index.js index b9958c2..b312eb1 100644 --- a/app/index.js +++ b/app/index.js @@ -15,6 +15,8 @@ var OKServer = require('okserver'); var OKSchema = require('okschema'); var OKImageService = require('okservices').OKImageService; +require('dotenv').load(); + /** * OKCMS! * Basically takes configuration and gives you a server. @@ -68,6 +70,7 @@ function OKCMS(options) { var viewConfig = options.views || { '/': { template: 'index' } }; + var serviceConfig = options.services || {}; var templateProvider = this._templateProvider = new OKTemplate({root: templateRoot}); @@ -88,7 +91,8 @@ function OKCMS(options) { // Create services var imageService = OKImageService({ - express: express + express: express, + s3: serviceConfig.s3, }); var server = this._server = new OKServer({ |
