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