diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-07 11:07:12 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:17 +0200 |
commit | bc8090411ddaa8d742ce4de3c83f9dba7bc18e2a (patch) | |
tree | 5020b384b6bc4870b06c53a0483abf551b33604e /shared/extra-utils/server/servers.ts | |
parent | dab047092b51b453f175069573d8865fb17acdfc (diff) | |
download | PeerTube-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.ts | 3 |
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' | |||
22 | import { JobsCommand } from './jobs-command' | 22 | import { JobsCommand } from './jobs-command' |
23 | import { PluginsCommand } from './plugins-command' | 23 | import { PluginsCommand } from './plugins-command' |
24 | import { RedundancyCommand } from './redundancy-command' | 24 | import { RedundancyCommand } from './redundancy-command' |
25 | import { StatsCommand } from './stats-command' | ||
25 | 26 | ||
26 | interface ServerInfo { | 27 | interface 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 | ||
94 | function parallelTests () { | 96 | function 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 | }) |