forked from audreyt/ethercalc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dotcloud.js
20 lines (19 loc) · 827 Bytes
/
dotcloud.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Generated by LiveScript 1.4.0
(function(){
this.include = function(){
var env, json, ref$, this$ = this;
try {
env = process.env;
this.io.configure(function(){
return this$.io.set('transports', this$.KEY || this$.POLLING
? ['jsonp-polling']
: env.SUBDOMAIN && env.NODE_ENV
? ['websocket', 'xhr-polling', 'jsonp-polling']
: ['websocket', 'flashsocket', 'xhr-polling', 'jsonp-polling']);
});
json = require('fs').readFileSync('/home/dotcloud/environment.json', 'utf8');
return ref$ = JSON.parse(json), env.REDIS_HOST = ref$.DOTCLOUD_DATA_REDIS_HOST, env.REDIS_PORT = ref$.DOTCLOUD_DATA_REDIS_PORT, env.REDIS_PASS = ref$.DOTCLOUD_DATA_REDIS_PASSWORD, ref$;
} catch (e$) {}
};
}).call(this);
//# sourceMappingURL=dotcloud.js.map