mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
parent
d42f4f6058
commit
042e0da1c9
2 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
var nconf = require('nconf'),
|
||||
path = require('path'),
|
||||
localUtils = require('./utils'),
|
||||
packageInfo = require('../../../package.json'),
|
||||
env = process.env.NODE_ENV || 'development';
|
||||
|
||||
nconf.set('NODE_ENV', env);
|
||||
|
@ -28,5 +29,11 @@ nconf.file('4', __dirname + '/defaults.json');
|
|||
*/
|
||||
localUtils.makePathsAbsolute.bind(nconf)();
|
||||
|
||||
/**
|
||||
* values we have to set manual
|
||||
* @TODO: ghost-cli?
|
||||
*/
|
||||
nconf.set('ghostVersion', packageInfo.version);
|
||||
|
||||
module.exports = nconf;
|
||||
module.exports.isPrivacyDisabled = localUtils.isPrivacyDisabled.bind(nconf);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"ghostVersion": "0.10.1",
|
||||
"paths": {
|
||||
"appRoot": ".",
|
||||
"corePath": "core/",
|
||||
|
|
Loading…
Add table
Reference in a new issue