2013-09-06 19:54:50 +04:00
|
|
|
// # Ghost Configuration
|
2013-09-15 18:45:18 +04:00
|
|
|
// Setup your Ghost install for various environments
|
2013-09-06 19:54:50 +04:00
|
|
|
|
|
|
|
var path = require('path'),
|
|
|
|
config;
|
|
|
|
|
|
|
|
config = {
|
2013-09-15 18:45:18 +04:00
|
|
|
// ### Development **(default)**
|
|
|
|
development: {
|
|
|
|
// The url to use when providing links to the site, E.g. in RSS and email.
|
|
|
|
url: 'http://my-ghost-blog.com',
|
|
|
|
|
|
|
|
// Example mail config
|
|
|
|
// Visit http://docs.ghost.org/mail for instructions
|
|
|
|
// ```
|
|
|
|
// mail: {
|
2013-09-30 18:06:54 +04:00
|
|
|
// transport: 'SMTP',
|
2013-09-15 18:45:18 +04:00
|
|
|
// options: {
|
2013-09-30 18:06:54 +04:00
|
|
|
// service: 'Mailgun',
|
2013-09-15 18:45:18 +04:00
|
|
|
// auth: {
|
2013-09-30 18:06:54 +04:00
|
|
|
// user: '', // mailgun username
|
|
|
|
// pass: '' // mailgun password
|
2013-09-15 18:45:18 +04:00
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// ```
|
2013-09-06 19:54:50 +04:00
|
|
|
|
|
|
|
database: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
2013-09-15 18:45:18 +04:00
|
|
|
filename: path.join(__dirname, '/content/data/ghost-dev.db')
|
|
|
|
},
|
|
|
|
debug: false
|
2013-09-06 19:54:50 +04:00
|
|
|
},
|
|
|
|
server: {
|
2013-09-27 02:43:43 +04:00
|
|
|
// Host to be passed to node's `net.Server#listen()`
|
2013-09-06 19:54:50 +04:00
|
|
|
host: '127.0.0.1',
|
2013-09-27 02:43:43 +04:00
|
|
|
// Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
|
2013-09-06 19:54:50 +04:00
|
|
|
port: '2368'
|
2013-09-15 18:45:18 +04:00
|
|
|
}
|
2013-09-06 19:54:50 +04:00
|
|
|
},
|
|
|
|
|
2013-09-15 18:45:18 +04:00
|
|
|
// ### Production
|
|
|
|
// When running Ghost in the wild, use the production environment
|
|
|
|
// Configure your URL and mail settings here
|
|
|
|
production: {
|
|
|
|
url: 'http://my-ghost-blog.com',
|
|
|
|
mail: {},
|
2013-09-06 19:54:50 +04:00
|
|
|
database: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
2013-09-15 18:45:18 +04:00
|
|
|
filename: path.join(__dirname, '/content/data/ghost.db')
|
2013-09-06 19:54:50 +04:00
|
|
|
},
|
|
|
|
debug: false
|
|
|
|
},
|
|
|
|
server: {
|
2013-09-27 02:43:43 +04:00
|
|
|
// Host to be passed to node's `net.Server#listen()`
|
2013-09-06 19:54:50 +04:00
|
|
|
host: '127.0.0.1',
|
2013-09-27 02:43:43 +04:00
|
|
|
// Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
|
2013-09-06 19:54:50 +04:00
|
|
|
port: '2368'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2013-09-15 18:45:18 +04:00
|
|
|
// **Developers only need to edit below here**
|
|
|
|
|
|
|
|
// ### Testing
|
|
|
|
// Used when developing Ghost to run tests and check the health of Ghost
|
|
|
|
// Uses a different port number
|
|
|
|
testing: {
|
|
|
|
url: 'http://127.0.0.1:2369',
|
2013-09-06 19:54:50 +04:00
|
|
|
database: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
2013-09-15 18:45:18 +04:00
|
|
|
filename: path.join(__dirname, '/content/data/ghost-test.db')
|
|
|
|
}
|
2013-09-06 19:54:50 +04:00
|
|
|
},
|
|
|
|
server: {
|
|
|
|
host: '127.0.0.1',
|
2013-09-15 18:45:18 +04:00
|
|
|
port: '2369'
|
|
|
|
}
|
2013-09-06 19:54:50 +04:00
|
|
|
},
|
|
|
|
|
2013-09-15 18:45:18 +04:00
|
|
|
// ### Travis
|
2013-10-21 12:58:33 +04:00
|
|
|
// Automated testing run through GitHub
|
2013-10-30 00:54:37 +04:00
|
|
|
'travis-sqlite3': {
|
2013-09-15 18:45:18 +04:00
|
|
|
url: 'http://127.0.0.1:2368',
|
2013-09-06 19:54:50 +04:00
|
|
|
database: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
2013-09-15 18:45:18 +04:00
|
|
|
filename: path.join(__dirname, '/content/data/ghost-travis.db')
|
|
|
|
}
|
2013-09-06 19:54:50 +04:00
|
|
|
},
|
|
|
|
server: {
|
|
|
|
host: '127.0.0.1',
|
|
|
|
port: '2368'
|
2013-09-15 18:45:18 +04:00
|
|
|
}
|
2013-10-30 00:54:37 +04:00
|
|
|
},
|
|
|
|
|
|
|
|
// ### Travis
|
|
|
|
// Automated testing run through GitHub
|
|
|
|
'travis-mysql': {
|
|
|
|
url: 'http://127.0.0.1:2368',
|
|
|
|
database: {
|
|
|
|
client: 'mysql',
|
|
|
|
connection: {
|
|
|
|
host : '127.0.0.1',
|
|
|
|
user : 'travis',
|
|
|
|
password : '',
|
|
|
|
database : 'ghost-travis',
|
|
|
|
charset : 'utf8'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
server: {
|
|
|
|
host: '127.0.0.1',
|
|
|
|
port: '2368'
|
|
|
|
}
|
2013-09-06 19:54:50 +04:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
// Export config
|
2013-09-30 18:06:54 +04:00
|
|
|
module.exports = config;
|