mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Moving default location of the Database
closes #579 - adding a readme to the content/data folder to make sure it is always created - also fixes a rebasing error
This commit is contained in:
parent
53a55fd46f
commit
aa60a6386f
3 changed files with 10 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
// # Ghost Configuration
|
// # Ghost Configuration
|
||||||
|
|
||||||
var path = require('path'),
|
var path = require('path'),
|
||||||
config = {};
|
config;
|
||||||
|
|
||||||
// ## Environment
|
// ## Environment
|
||||||
// **Warning:** Only change the settings below here if you are sure of what you are doing!
|
// **Warning:** Only change the settings below here if you are sure of what you are doing!
|
||||||
|
@ -10,7 +10,7 @@ config = {
|
||||||
database: {
|
database: {
|
||||||
client: 'sqlite3',
|
client: 'sqlite3',
|
||||||
connection: {
|
connection: {
|
||||||
filename: path.join(__dirname, '/core/server/data/ghost-test.db')
|
filename: path.join(__dirname, '/content/data/ghost-test.db')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
|
@ -25,7 +25,7 @@ config = {
|
||||||
database: {
|
database: {
|
||||||
client: 'sqlite3',
|
client: 'sqlite3',
|
||||||
connection: {
|
connection: {
|
||||||
filename: path.join(__dirname, '/core/server/data/ghost-travis.db')
|
filename: path.join(__dirname, '/content/data/ghost-travis.db')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
|
@ -41,7 +41,7 @@ config = {
|
||||||
database: {
|
database: {
|
||||||
client: 'sqlite3',
|
client: 'sqlite3',
|
||||||
connection: {
|
connection: {
|
||||||
filename: path.join(__dirname, '/core/server/data/ghost-dev.db')
|
filename: path.join(__dirname, '/content/data/ghost-dev.db')
|
||||||
},
|
},
|
||||||
debug: false
|
debug: false
|
||||||
},
|
},
|
||||||
|
@ -69,7 +69,7 @@ config = {
|
||||||
database: {
|
database: {
|
||||||
client: 'sqlite3',
|
client: 'sqlite3',
|
||||||
connection: {
|
connection: {
|
||||||
filename: path.join(__dirname, '/core/server/data/ghost-staging.db')
|
filename: path.join(__dirname, '/content/data/ghost-staging.db')
|
||||||
},
|
},
|
||||||
debug: false
|
debug: false
|
||||||
},
|
},
|
||||||
|
@ -85,7 +85,7 @@ config = {
|
||||||
database: {
|
database: {
|
||||||
client: 'sqlite3',
|
client: 'sqlite3',
|
||||||
connection: {
|
connection: {
|
||||||
filename: path.join(__dirname, '/core/server/data/ghost.db')
|
filename: path.join(__dirname, '/content/data/ghost.db')
|
||||||
},
|
},
|
||||||
debug: false
|
debug: false
|
||||||
},
|
},
|
||||||
|
|
3
content/data/README.md
Normal file
3
content/data/README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Content / Data
|
||||||
|
|
||||||
|
This is the home of your Ghost database, do not overwrite this folder or any of the files inside of it.
|
|
@ -265,7 +265,7 @@ when.all([ghost.init(), helpers.loadCoreHelpers(ghost)]).then(function () {
|
||||||
|
|
||||||
// Startup message
|
// Startup message
|
||||||
console.log("Express server listening on address:",
|
console.log("Express server listening on address:",
|
||||||
ghost.config().envserver.host + ':'
|
ghost.config().server.host + ':'
|
||||||
+ ghost.config().server.port);
|
+ ghost.config().server.port);
|
||||||
|
|
||||||
// Let everyone know we have finished loading
|
// Let everyone know we have finished loading
|
||||||
|
|
Loading…
Add table
Reference in a new issue