From 21df506c47cdfeb77b1798e5ea375a26a32602a3 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Thu, 12 Sep 2013 15:51:55 +0100 Subject: [PATCH] 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 --- config.example.js | 10 +++++----- content/data/README.md | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 content/data/README.md diff --git a/config.example.js b/config.example.js index b2bbf0fdeb..7297a309ef 100644 --- a/config.example.js +++ b/config.example.js @@ -10,7 +10,7 @@ config = { database: { client: 'sqlite3', connection: { - filename: path.join(__dirname, '/core/server/data/ghost-test.db') + filename: path.join(__dirname, '/content/data/ghost-test.db') } }, server: { @@ -25,7 +25,7 @@ config = { database: { client: 'sqlite3', connection: { - filename: path.join(__dirname, '/core/server/data/ghost-travis.db') + filename: path.join(__dirname, '/content/data/ghost-travis.db') } }, server: { @@ -41,7 +41,7 @@ config = { database: { client: 'sqlite3', connection: { - filename: path.join(__dirname, '/core/server/data/ghost-dev.db') + filename: path.join(__dirname, '/content/data/ghost-dev.db') }, debug: false }, @@ -69,7 +69,7 @@ config = { database: { client: 'sqlite3', connection: { - filename: path.join(__dirname, '/core/server/data/ghost-staging.db') + filename: path.join(__dirname, '/content/data/ghost-staging.db') }, debug: false }, @@ -85,7 +85,7 @@ config = { database: { client: 'sqlite3', connection: { - filename: path.join(__dirname, '/core/server/data/ghost.db') + filename: path.join(__dirname, '/content/data/ghost.db') }, debug: false }, diff --git a/content/data/README.md b/content/data/README.md new file mode 100644 index 0000000000..51b4a65012 --- /dev/null +++ b/content/data/README.md @@ -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. \ No newline at end of file