aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/server/servers.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-07 11:07:12 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commitbc8090411ddaa8d742ce4de3c83f9dba7bc18e2a (patch)
tree5020b384b6bc4870b06c53a0483abf551b33604e /shared/extra-utils/server/servers.ts
parentdab047092b51b453f175069573d8865fb17acdfc (diff)
downloadPeerTube-bc8090411ddaa8d742ce4de3c83f9dba7bc18e2a.tar.gz
PeerTube-bc8090411ddaa8d742ce4de3c83f9dba7bc18e2a.tar.zst
PeerTube-bc8090411ddaa8d742ce4de3c83f9dba7bc18e2a.zip
Introduce stats command
Diffstat (limited to 'shared/extra-utils/server/servers.ts')
-rw-r--r--shared/extra-utils/server/servers.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/extra-utils/server/servers.ts b/shared/extra-utils/server/servers.ts
index eaf39ecea..4603cf62e 100644
--- a/shared/extra-utils/server/servers.ts
+++ b/shared/extra-utils/server/servers.ts
@@ -22,6 +22,7 @@ import { FollowsCommand } from './follows-command'
22import { JobsCommand } from './jobs-command' 22import { JobsCommand } from './jobs-command'
23import { PluginsCommand } from './plugins-command' 23import { PluginsCommand } from './plugins-command'
24import { RedundancyCommand } from './redundancy-command' 24import { RedundancyCommand } from './redundancy-command'
25import { StatsCommand } from './stats-command'
25 26
26interface ServerInfo { 27interface ServerInfo {
27 app: ChildProcess 28 app: ChildProcess
@@ -89,6 +90,7 @@ interface ServerInfo {
89 jobsCommand?: JobsCommand 90 jobsCommand?: JobsCommand
90 pluginsCommand?: PluginsCommand 91 pluginsCommand?: PluginsCommand
91 redundancyCommand?: RedundancyCommand 92 redundancyCommand?: RedundancyCommand
93 statsCommand?: StatsCommand
92} 94}
93 95
94function parallelTests () { 96function parallelTests () {
@@ -308,6 +310,7 @@ async function runServer (server: ServerInfo, configOverrideArg?: any, args = []
308 server.jobsCommand = new JobsCommand(server) 310 server.jobsCommand = new JobsCommand(server)
309 server.pluginsCommand = new PluginsCommand(server) 311 server.pluginsCommand = new PluginsCommand(server)
310 server.redundancyCommand = new RedundancyCommand(server) 312 server.redundancyCommand = new RedundancyCommand(server)
313 server.statsCommand = new StatsCommand(server)
311 314
312 res(server) 315 res(server)
313 }) 316 })