-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathweb.js
More file actions
32 lines (21 loc) · 717 Bytes
/
Copy pathweb.js
File metadata and controls
32 lines (21 loc) · 717 Bytes
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
var keystone = require('keystone');
var hbs = require('express3-handlebars')
keystone.init({
'name': 'Athina Vahla',
'favicon': 'public/favicon.ico',
'less': 'public',
'static': 'public',
'views': 'templates/views',
'custom engine': hbs.create({extname:".hbs", defaultLayout:'main', layoutsDir:"templates/layouts/", partialsDir:"templates/partials/" }).engine,
'view engine': 'hbs',
'auto update': true,
'mongo': process.env.MONGO_URI || 'mongodb://localhost/athinavahla',
'session': false,
'auth': true,
'user model': 'User',
'cookie secret': 'dont tell anyone'
});
require('./models');
keystone.set('routes', require('./routes'));
process.title = 'athinavahla'
keystone.start();