forked from audreyt/ethercalc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdotcloud.js
More file actions
18 lines (18 loc) · 789 Bytes
/
dotcloud.js
File metadata and controls
18 lines (18 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Generated by LiveScript 1.2.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);