-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
36 lines (33 loc) · 924 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
'use strict';
//
// Configuration per environment, development is default. Configuration options:
// - mongo: {String} MongoDB connection. Example: mongoHQ via nodejitsu.
// - themes: {Object} name:source combination, valid git URL or submodule name.
// - mail: {Object} optional e-mail service, required for password recovery.
//
var config = {
development: {
mongo: 'mongodb://localhost:27017/blog',
themes: {
casper: 'git://github.com/TryGhost/Casper.git'
},
mail: {}
},
production: {
mongo: 'mongodb://localhost:27017/blog',
themes: {
casper: 'git://github.com/TryGhost/Casper.git'
},
mail: {}
}
};
/**
* Return the correct configuration based on environment.
*
* @param {String} env environment setting
* @return {Object} configuration
* @api public
*/
module.exports = function get(env) {
return env in config ? config[env] : config.development;
};