-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path_settings.js
executable file
·87 lines (61 loc) · 2.56 KB
/
_settings.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
var path = require('path'),
rootPath = path.normalize(__dirname + '/..');
module.exports = function (app) {
app.site = {
name : 'tesla.js', // the name of your app
};
app.config = {
api : {
enabled : true, // set false to disable json output for scafolding
format : 'json', // format to output in api views
access : '*' // placeholder for future api security enhancement
},
autoLoad : true, // whether to attempt autoload controllers
autoRouting : true, // whether to use auto routing
buildDir : './_build/', // destination directory for builds
cache : true, // whether to use caching
// see https://github.com/dresende/node-orm2/wiki/Connecting-to-Database for more info on connection to your databse
db : {
url : 'driver://username:password@hostname/database', // url to database
driver : 'mongodb' // which db driver to use
},
engines : {
html : 'jade', // options: (ejs|hbs|hogan|jade|mustache)
css : 'stylus', // options: (stylus|sass|less) - set false to just use vanilla css
cssLibrary : false, // options: (axis|bourbon|nib) - set to false for none
},
gzip : true, // whether to enable gzip compression
jsonp : true, // allow jsonp requests
liveReload : {
use : true,
port : 35729, // port to run the server on
},
logging : {
console : true, // whether to allow tesla to log messages to the node console
files : false // this doesn't do anything yet, eventually it will write .log files
},
// WHETHER TO HANDLE CSS & HTML TEMPLATE VIA MIDDLEWARE OR GULP
middleware: {
css: false, // set true if you want to process via middleware instead of Gulp
html: true, // jade, handlebars, etc still need to run through middleware for now
},
port : 1856, // port to run the server on
prettify : {
html : true, // whether to pretify html
css : true, // whether to pretify css
js : true // whether to pretify js
},
protocol : 'http://', // options: (http|https)
publicDir : './public/', // public directory where images, javascript, css, etc is stored
root : rootPath, // path to the root of your server
secret : 'MYAPPSECRET', // placeholder for now, will be implemented later
socket : false // WHETHER TO USE SOCKET.IO
};
// some default meta settings for <head>
app.site.meta = {
description : '',
encoding : 'utf-8',
keywords : '',
viewport : 'width=device-width, user-scalable=yes, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0'
};
};