]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/extra-utils/cli/cli.ts
Update plugin guides toc
[github/Chocobozzz/PeerTube.git] / shared / extra-utils / cli / cli.ts
index d532b62b02e4dbf8b86b9f65583741fc12413d2b..c62e170bb323ee436efac0dace62f2936411080a 100644 (file)
@@ -3,10 +3,10 @@ import { exec } from 'child_process'
 import { ServerInfo } from '../server/servers'
 
 function getEnvCli (server?: ServerInfo) {
-  return `NODE_ENV=test NODE_APP_INSTANCE=${server.serverNumber}`
+  return `NODE_ENV=test NODE_APP_INSTANCE=${server.internalServerNumber}`
 }
 
-async function execCLI (command: string,) {
+async function execCLI (command: string) {
   return new Promise<string>((res, rej) => {
     exec(command, (err, stdout, stderr) => {
       if (err) return rej(err)