diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-06 16:02:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:17 +0200 |
commit | 883a9019085ff9013079d6b1539b86f2f519175a (patch) | |
tree | bf1f68340ee4b482f880753bdd4658e91aff8335 /shared/extra-utils/server/servers.ts | |
parent | a9c58393d36d221197b48884a1960e6126ab31d7 (diff) | |
download | PeerTube-883a9019085ff9013079d6b1539b86f2f519175a.tar.gz PeerTube-883a9019085ff9013079d6b1539b86f2f519175a.tar.zst PeerTube-883a9019085ff9013079d6b1539b86f2f519175a.zip |
Introduce debug 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 b58639ba6..30e712ab8 100644 --- a/shared/extra-utils/server/servers.ts +++ b/shared/extra-utils/server/servers.ts | |||
@@ -17,6 +17,7 @@ import { OverviewsCommand } from '../overviews' | |||
17 | import { makeGetRequest } from '../requests/requests' | 17 | import { makeGetRequest } from '../requests/requests' |
18 | import { SearchCommand } from '../search' | 18 | import { SearchCommand } from '../search' |
19 | import { ContactFormCommand } from './contact-form-command' | 19 | import { ContactFormCommand } from './contact-form-command' |
20 | import { DebugCommand } from './debug-command' | ||
20 | 21 | ||
21 | interface ServerInfo { | 22 | interface ServerInfo { |
22 | app: ChildProcess | 23 | app: ChildProcess |
@@ -79,6 +80,7 @@ interface ServerInfo { | |||
79 | overviewsCommand?: OverviewsCommand | 80 | overviewsCommand?: OverviewsCommand |
80 | searchCommand?: SearchCommand | 81 | searchCommand?: SearchCommand |
81 | contactFormCommand?: ContactFormCommand | 82 | contactFormCommand?: ContactFormCommand |
83 | debugCommand?: DebugCommand | ||
82 | } | 84 | } |
83 | 85 | ||
84 | function parallelTests () { | 86 | function parallelTests () { |
@@ -293,6 +295,7 @@ async function runServer (server: ServerInfo, configOverrideArg?: any, args = [] | |||
293 | server.overviewsCommand = new OverviewsCommand(server) | 295 | server.overviewsCommand = new OverviewsCommand(server) |
294 | server.searchCommand = new SearchCommand(server) | 296 | server.searchCommand = new SearchCommand(server) |
295 | server.contactFormCommand = new ContactFormCommand(server) | 297 | server.contactFormCommand = new ContactFormCommand(server) |
298 | server.debugCommand = new DebugCommand(server) | ||
296 | 299 | ||
297 | res(server) | 300 | res(server) |
298 | }) | 301 | }) |