-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
56 lines (43 loc) · 1.17 KB
/
index.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
/**
* This is separate to init the babel register
*/
require('babel-register')({
presets: ['es2015']
});
var keystone = require('keystone');
keystone.init({
'name': 'Keystone Angular Starter',
'brand': 'Keystone Angular Starter',
'ga property': process.env.GA_PROPERTY || null,
'ga domain': process.env.GA_DOMAIN || null,
'favicon': 'www/public/favicon.ico',
'static': 'www/public',
'updates': 'keystone/updates',
'views': 'keystone/templates/views',
'view engine': 'jade',
'auto update': true,
'session': true,
'auth': true,
'user model': 'User',
'cookie secret': '349fj[qG%^KW23554HK8jh3qp38947jfj'
});
keystone.import('keystone/models');
// Set us up some default locals
keystone.set('locals', {
_: require('lodash'),
env: keystone.get('evn'),
utils: keystone.utils,
editable: keystone.content.editable,
ga_property: keystone.get('ga property'),
ga_domain: keystone.get('ga domain')
});
// Import routes
keystone.set('routes', require('./keystone/routes'));
// Update the admin ui nav
keystone.set('nav', {
'posts': ['posts', 'post-categories'],
'enquiries': 'enquiries',
'users': 'users'
});
// Start keystone :)
keystone.start();