-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
30 lines (25 loc) · 996 Bytes
/
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
'use strict';
var kraken = require('kraken-js'),
app = require('express')(),
options = {
onconfig: function (config, next) {
//any config setup/overrides here
next(null, config);
}
},
port = process.env.PORT || 8000;
app.use(kraken(options));
app.listen(port, function (err) {
var splash = function () {/*
/$$$$$$ /$$ /$$
/$$__ $$|__/| $$
| $$ \__/ /$$| $$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$$
| $$ /$$$$| $$| $$__ $$ /$$_____/ /$$__ $$| $$__ $$
| $$|_ $$| $$| $$ \ $$| $$$$$$ | $$ \ $$| $$ \ $$
| $$ \ $$| $$| $$ | $$ \____ $$| $$ | $$| $$ | $$
| $$$$$$/| $$| $$$$$$$/ /$$$$$$$/| $$$$$$/| $$ | $$
\______/ |__/|_______/ |_______/ \______/ |__/ |__/
*/};
console.log(splash.toString().match(/\/\*([\s\S]*)\*\//m)[1]);
console.log('[%s] Listening on http://localhost:%d', app.settings.env, port);
});