From c560f839e8f000bd1bdd4bbc532c63b2a377a0ce Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Mon, 6 Feb 2017 19:57:36 -0800 Subject: [PATCH] Create template --- ch13/templates/config.js.j2 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ch13/templates/config.js.j2 b/ch13/templates/config.js.j2 index 8446a8b..62c1d5e 100644 --- a/ch13/templates/config.js.j2 +++ b/ch13/templates/config.js.j2 @@ -11,14 +11,17 @@ config = { // When running Ghost in the wild, use the production environment. // Configure your URL and mail settings here production: { - url: 'http://localhost:8000', + url: '{{ url }}', mail: {}, database: { - client: 'sqlite3', + client: 'pg', connection: { - filename: path.join(process.env.GHOST_CONTENT, '/data/ghost.db') - }, - debug: false + host : '{{ database_host }}', + user : '{{ database_user }}', + password : '{{ database_pasword }}', + database : '{{ database_name }}', + charset : 'utf8' + } }, server: { -- 2.44.0