mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
221345ff99
- updated fixtures so that even short-term we have valid data - added methods to the base model that marshall the data in and out of the db so it is always an RFC 2822 date never ISO 8601 - turned off SQL debugging now the bug is resolved - minor change to the date listing template, as we don't need to check for updated_at now that the data is correct - but should use published date anyway
129 lines
2.2 KiB
JavaScript
129 lines
2.2 KiB
JavaScript
// # Ghost Configuration
|
|
|
|
/**
|
|
* global module
|
|
**/
|
|
var path = require('path'),
|
|
config;
|
|
|
|
/**
|
|
* @module config
|
|
* @type {Object}
|
|
*/
|
|
config = {};
|
|
|
|
// ## Admin settings
|
|
|
|
/**
|
|
* @property {string} defaultLang
|
|
*/
|
|
config.defaultLang = 'en';
|
|
|
|
/**
|
|
* @property {boolean} forceI18n
|
|
*/
|
|
config.forceI18n = true;
|
|
|
|
// ## Themes
|
|
|
|
/**
|
|
* @property {string} themeDir
|
|
*/
|
|
|
|
// Themes
|
|
config.themeDir = 'themes';
|
|
|
|
// Current active theme
|
|
/**
|
|
* @property {string} activeTheme
|
|
*/
|
|
config.activeTheme = 'casper';
|
|
|
|
|
|
config.activePlugins = [
|
|
'fancyFirstChar.js'
|
|
];
|
|
|
|
// Default Navigation Items
|
|
/**
|
|
* @property {Array} nav
|
|
*/
|
|
config.nav = [{
|
|
title: 'Home',
|
|
url: '/'
|
|
}];
|
|
|
|
config.env = {
|
|
testing: {
|
|
database: {
|
|
client: 'sqlite3',
|
|
connection: {
|
|
filename: path.join(__dirname, '/core/shared/data/ghost-test.db')
|
|
}
|
|
},
|
|
url: {
|
|
host: '127.0.0.1',
|
|
port: '2368'
|
|
}
|
|
},
|
|
|
|
travis: {
|
|
database: {
|
|
client: 'sqlite3',
|
|
connection: {
|
|
filename: path.join(__dirname, '/core/shared/data/ghost-travis.db')
|
|
}
|
|
},
|
|
url: {
|
|
host: '127.0.0.1',
|
|
port: '2368'
|
|
}
|
|
},
|
|
|
|
development: {
|
|
database: {
|
|
client: 'sqlite3',
|
|
connection: {
|
|
filename: path.join(__dirname, '/core/shared/data/ghost-dev.db')
|
|
},
|
|
debug: false
|
|
},
|
|
url: {
|
|
host: '127.0.0.1',
|
|
port: '2368'
|
|
}
|
|
},
|
|
|
|
staging: {
|
|
database: {
|
|
client: 'sqlite3',
|
|
connection: {
|
|
filename: path.join(__dirname, '/core/shared/data/ghost-staging.db')
|
|
},
|
|
debug: false
|
|
},
|
|
url: {
|
|
host: '127.0.0.1',
|
|
port: '2368'
|
|
}
|
|
},
|
|
|
|
production: {
|
|
database: {
|
|
client: 'sqlite3',
|
|
connection: {
|
|
filename: path.join(__dirname, '/core/shared/data/ghost.db')
|
|
},
|
|
debug: false
|
|
},
|
|
url: {
|
|
host: '127.0.0.1',
|
|
port: '2368'
|
|
}
|
|
}
|
|
};
|
|
|
|
/**
|
|
* @property {Object} exports
|
|
*/
|
|
module.exports = config; |