Skip to content

Commit 7cd90bd

Browse files
committed
Improved start scripts.
1 parent 0c135c4 commit 7cd90bd

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

components/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// https://www.totaljs.com
44
// ===================================================
55

6-
const total = 'total4';
76
const options = {};
87

98
// options.ip = '127.0.0.1';

localization/index.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// https://www.totaljs.com
44
// ===================================================
55

6-
const total = 'total4';
76
const options = {};
87

98
// options.ip = '127.0.0.1';
@@ -15,5 +14,16 @@ const options = {};
1514
// options.watch = ['private'];
1615
// options.livereload = 'https://yourhostname';
1716

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+
1828
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);

sitemap/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// https://www.totaljs.com
44
// ===================================================
55

6-
const total = 'total4';
76
const options = {};
87

98
// options.ip = '127.0.0.1';

threads/index.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
// ===================================================
2-
// Total.js start script
3-
// https://www.totaljs.com
4-
// ===================================================
5-
6-
const total = 'total4';
71
const options = {};
82

93
// options.ip = '127.0.0.1';
@@ -17,6 +11,7 @@ const options = {};
1711

1812
// Enables cluster:
1913
// options.cluster = 'auto';
14+
// options.cluster_limit = 10; // max 10. threads (works only with "auto" scaling)
2015

2116
// Enables threads:
2217
options.cluster = 'auto';
@@ -26,8 +21,9 @@ options.threads = true;
2621
// or add prefix to endpoints:
2722
// options.threads = '/api/';
2823

29-
// Proxy timeout
3024
// options.timeout = 5000;
25+
// options.threads = '/api/';
26+
// options.logs = 'isolated';
3127

3228
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);

workers/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// https://www.totaljs.com
44
// ===================================================
55

6-
const total = 'total4';
76
const options = {};
87

98
// options.ip = '127.0.0.1';

0 commit comments

Comments
 (0)