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
|
2014-02-03 19:50:27 +04:00
|
|
|
// Documentation can be found at http://docs.ghost.org/usage/configuration/
|
2013-09-06 19:54:50 +04:00
|
|
|
|
|
|
|
var path = require('path'),
|
|
|
|
config;
|
|
|
|
|
|
|
|
config = {
|
2014-08-10 21:24:09 +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: {},
|
|
|
|
database: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
|
|
|
filename: path.join(__dirname, '/content/data/ghost.db')
|
|
|
|
},
|
|
|
|
debug: false
|
|
|
|
},
|
|
|
|
server: {
|
|
|
|
// Host to be passed to node's `net.Server#listen()`
|
|
|
|
host: '127.0.0.1',
|
|
|
|
// Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
|
|
|
|
port: '2368'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
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.
|
2014-08-10 21:24:09 +04:00
|
|
|
// Change this to your Ghost blogs published URL.
|
|
|
|
url: 'http://localhost:2368',
|
2013-09-15 18:45:18 +04:00
|
|
|
|
|
|
|
// 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'
|
2014-01-05 10:40:53 +04:00
|
|
|
},
|
|
|
|
paths: {
|
|
|
|
contentPath: path.join(__dirname, '/content/')
|
2013-09-15 18:45:18 +04:00
|
|
|
}
|
2013-09-06 19:54:50 +04:00
|
|
|
},
|
|
|
|
|
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'
|
2014-02-11 01:07:11 +04:00
|
|
|
},
|
|
|
|
logging: false
|
2013-09-06 19:54:50 +04:00
|
|
|
},
|
|
|
|
|
2014-03-25 16:42:52 +04:00
|
|
|
// ### Testing MySQL
|
|
|
|
// Used by Travis - Automated testing run through GitHub
|
|
|
|
'testing-mysql': {
|
2013-11-03 18:12:09 +04:00
|
|
|
url: 'http://127.0.0.1:2369',
|
2013-10-30 00:54:37 +04:00
|
|
|
database: {
|
|
|
|
client: 'mysql',
|
|
|
|
connection: {
|
|
|
|
host : '127.0.0.1',
|
2014-03-25 16:42:52 +04:00
|
|
|
user : 'root',
|
2013-10-30 00:54:37 +04:00
|
|
|
password : '',
|
2014-03-25 16:42:52 +04:00
|
|
|
database : 'ghost_testing',
|
2013-10-30 00:54:37 +04:00
|
|
|
charset : 'utf8'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
server: {
|
|
|
|
host: '127.0.0.1',
|
2013-11-03 18:12:09 +04:00
|
|
|
port: '2369'
|
2014-02-11 01:07:11 +04:00
|
|
|
},
|
|
|
|
logging: false
|
2013-11-25 04:29:24 +04:00
|
|
|
},
|
|
|
|
|
2014-03-25 16:42:52 +04:00
|
|
|
// ### Testing pg
|
|
|
|
// Used by Travis - Automated testing run through GitHub
|
|
|
|
'testing-pg': {
|
2013-11-25 04:29:24 +04:00
|
|
|
url: 'http://127.0.0.1:2369',
|
|
|
|
database: {
|
|
|
|
client: 'pg',
|
|
|
|
connection: {
|
|
|
|
host : '127.0.0.1',
|
|
|
|
user : 'postgres',
|
|
|
|
password : '',
|
2014-03-25 16:42:52 +04:00
|
|
|
database : 'ghost_testing',
|
2013-11-25 04:29:24 +04:00
|
|
|
charset : 'utf8'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
server: {
|
|
|
|
host: '127.0.0.1',
|
|
|
|
port: '2369'
|
2014-02-11 01:07:11 +04:00
|
|
|
},
|
|
|
|
logging: false
|
2013-09-06 19:54:50 +04:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
// Export config
|
2013-09-30 18:06:54 +04:00
|
|
|
module.exports = config;
|