forked from Atajo/provider
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.js
More file actions
34 lines (18 loc) · 724 Bytes
/
start.js
File metadata and controls
34 lines (18 loc) · 724 Bytes
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
require('./lib/atajo.env').init(function() {
require('./lib/atajo.provider').init(function(atajo) {
global.atajo = atajo;
//atajo.clear();
require('./lib/atajo.setup').init(function() {
atajo.log.i("STARTING PROVIDER");
//GET RELEASE
atajo.release(function(__RELEASE__, __SERVER__) {
RELEASE = __RELEASE__;
SERVER = __SERVER__;
atajo.postInit(RELEASE);
URI = SERVER.protocol + '://' + SERVER.host + ':' + SERVER.port;
atajo.log.d("CONNECTING TO : " + URI + " (" + RELEASE + ")");
atajo.io.init(RELEASE, URI);
});
});
});
});