UNPKG

1.85 kBJavaScriptView Raw
1/**
2 * Lemonade JS
3 * https://lemonadejs.com
4 *
5 * ----
6 *
7 * config.js
8 */
9exports = module.exports = {
10 /**
11 * Configuration constants
12 */
13 config : {
14 project : 'Lemonade demo project'
15 , logpath : '../logs/' // keep logpath outside of the appdir
16 }
17 /**
18 * Boot modules
19 */
20 ,boot : {
21 /**
22 * Dummy link, check appdir/links/dummy.js
23 * for more info
24 */
25 dum : 'dummy'
26 /**
27 * Mysql configuration with master / slave
28 */
29 /*, db : [
30 'mysql'
31 , { host : '', user : '', pass : '', port : '' } //master
32 , { host : '', user : '', pass : '', port : '' } //slave
33 , '' //defaultdb
34 , { slow : 5 } //log queries that take longer
35 ]*/
36 /**
37 * cassandra configuration
38 */
39 /*, storage : [
40 'cassandra'
41 , [ { host : '', port : '' } , { host : '', port : '' } ] //hosts
42 , '' //default keyspace
43 , { user : '', pass : '', slow : 5 } //options
44 ]*/
45 /**
46 * rabbitMq configuration
47 */
48 /*, queue : [ 'rabbit' , { host : '' , port : '' } ]*/
49 /**
50 * solr configuration
51 */
52 /*, search : [
53 'solr'
54 , { host : '', port : '' } //master
55 , { host : '', port : '' } //slave
56 , '' //defaultcore
57 , { slow : 5 } //log queries that take longer
58 ]*/
59 }
60 /**
61 * Run modules
62 */
63 ,run : {
64 /**
65 * Start the httpd server on the specified port
66 */
67 webserver : [ 'httpd', 2037 ]
68 /**
69 * Spin some crontabs
70 */
71 , crontab : 'spinner'
72 }
73 /**
74 * Methods to run on lemonade exit
75 */
76 ,shutdown : { }
77};
\No newline at end of file