-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
105 lines (101 loc) · 2.09 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
var path = require("path"),
config;
config = {
production: {
url: "http://127.0.0.1:80",
mail: {},
database: {
client: "sqlite3",
connection: {
filename: path.join(__dirname, "/content/data/ghost.db"),
},
debug: false,
},
server: {
host: "0.0.0.0",
port: "80",
},
},
development: {
url: "http://127.0.0.1:3000",
database: {
client: "sqlite3",
connection: {
filename: path.join(__dirname, "/content/data/ghost-dev.db"),
},
debug: false,
},
server: {
host: "127.0.0.1",
port: "3000",
},
paths: {
contentPath: path.join(__dirname, "/content/"),
},
},
testing: {
url: "http://127.0.0.1:2369",
database: {
client: "sqlite3",
connection: {
filename: path.join(__dirname, "/content/data/ghost-test.db"),
},
pool: {
afterCreate: function (conn, done) {
conn.run(
"PRAGMA synchronous=OFF;" +
"PRAGMA journal_mode=MEMORY;" +
"PRAGMA locking_mode=EXCLUSIVE;" +
"BEGIN EXCLUSIVE; COMMIT;",
done
);
},
},
useNullAsDefault: true,
},
server: {
host: "127.0.0.1",
port: "2369",
},
logging: false,
},
"testing-mysql": {
url: "http://127.0.0.1:2369",
database: {
client: "mysql",
connection: {
host: "127.0.0.1",
user: "root",
password: "",
database: "ghost_testing",
charset: "utf8",
},
},
server: {
host: "127.0.0.1",
port: "2369",
},
logging: false,
},
// ### Testing pg
// Used by Travis - Automated testing run through GitHub
"testing-pg": {
url: "http://127.0.0.1:2369",
database: {
client: "pg",
connection: {
host: "127.0.0.1",
user: "postgres",
password: "",
database: "ghost_testing",
charset: "utf8",
},
},
server: {
host: "127.0.0.1",
port: "2369",
},
logging: false,
},
};
module.exports = config;