File tree Expand file tree Collapse file tree 5 files changed +16
-13
lines changed Expand file tree Collapse file tree 5 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 3
3
// https://www.totaljs.com
4
4
// ===================================================
5
5
6
- const total = 'total4' ;
7
6
const options = { } ;
8
7
9
8
// options.ip = '127.0.0.1';
Original file line number Diff line number Diff line change 3
3
// https://www.totaljs.com
4
4
// ===================================================
5
5
6
- const total = 'total4' ;
7
6
const options = { } ;
8
7
9
8
// options.ip = '127.0.0.1';
@@ -15,5 +14,16 @@ const options = {};
15
14
// options.watch = ['private'];
16
15
// options.livereload = 'https://yourhostname';
17
16
17
+ // Enables cluster:
18
+ // options.cluster = 'auto';
19
+ // options.cluster_limit = 10; // max 10. threads (works only with "auto" scaling)
20
+
21
+ // Enables threads:
22
+ // options.cluster = 'auto';
23
+ // options.cluster_limit = 10; // max 10. threads (works only with "auto" scaling)
24
+ // options.timeout = 5000;
25
+ // options.threads = '/api/';
26
+ // options.logs = 'isolated';
27
+
18
28
var type = process . argv . indexOf ( '--release' , 1 ) !== - 1 || process . argv . indexOf ( 'release' , 1 ) !== - 1 ? 'release' : 'debug' ;
19
- require ( total + ' /' + type ) ( options ) ;
29
+ require ( 'total4 /' + type ) ( options ) ;
Original file line number Diff line number Diff line change 3
3
// https://www.totaljs.com
4
4
// ===================================================
5
5
6
- const total = 'total4' ;
7
6
const options = { } ;
8
7
9
8
// options.ip = '127.0.0.1';
Original file line number Diff line number Diff line change 1
- // ===================================================
2
- // Total.js start script
3
- // https://www.totaljs.com
4
- // ===================================================
5
-
6
- const total = 'total4' ;
7
1
const options = { } ;
8
2
9
3
// options.ip = '127.0.0.1';
@@ -17,6 +11,7 @@ const options = {};
17
11
18
12
// Enables cluster:
19
13
// options.cluster = 'auto';
14
+ // options.cluster_limit = 10; // max 10. threads (works only with "auto" scaling)
20
15
21
16
// Enables threads:
22
17
options . cluster = 'auto' ;
@@ -26,8 +21,9 @@ options.threads = true;
26
21
// or add prefix to endpoints:
27
22
// options.threads = '/api/';
28
23
29
- // Proxy timeout
30
24
// options.timeout = 5000;
25
+ // options.threads = '/api/';
26
+ // options.logs = 'isolated';
31
27
32
28
var type = process . argv . indexOf ( '--release' , 1 ) !== - 1 || process . argv . indexOf ( 'release' , 1 ) !== - 1 ? 'release' : 'debug' ;
33
- require ( total + ' /' + type ) ( options ) ;
29
+ require ( 'total4 /' + type ) ( options ) ;
Original file line number Diff line number Diff line change 3
3
// https://www.totaljs.com
4
4
// ===================================================
5
5
6
- const total = 'total4' ;
7
6
const options = { } ;
8
7
9
8
// options.ip = '127.0.0.1';
You can’t perform that action at this time.
0 commit comments