diff options
author | Chocobozzz <me@florianbigard.com> | 2022-12-09 11:14:47 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-12-12 13:36:23 +0100 |
commit | 2732eeff9e6994582293b5aaa0cb158b7e272e9e (patch) | |
tree | 417d30cf470cd1db84e06c5dbd1b5429d4b99bc1 /shared/server-commands | |
parent | c7c5f8d0f17b0ab598fbe237f11639c6de28110c (diff) | |
download | PeerTube-2732eeff9e6994582293b5aaa0cb158b7e272e9e.tar.gz PeerTube-2732eeff9e6994582293b5aaa0cb158b7e272e9e.tar.zst PeerTube-2732eeff9e6994582293b5aaa0cb158b7e272e9e.zip |
Fix CI using 127.0.0.1 for tests
Diffstat (limited to 'shared/server-commands')
-rw-r--r-- | shared/server-commands/miscs/sql-command.ts | 2 | ||||
-rw-r--r-- | shared/server-commands/server/server.ts | 6 | ||||
-rw-r--r-- | shared/server-commands/videos/live.ts | 1 |
3 files changed, 5 insertions, 4 deletions
diff --git a/shared/server-commands/miscs/sql-command.ts b/shared/server-commands/miscs/sql-command.ts index f163cc8c9..dbc441aba 100644 --- a/shared/server-commands/miscs/sql-command.ts +++ b/shared/server-commands/miscs/sql-command.ts | |||
@@ -131,7 +131,7 @@ export class SQLCommand extends AbstractCommand { | |||
131 | const dbname = 'peertube_test' + this.server.internalServerNumber | 131 | const dbname = 'peertube_test' + this.server.internalServerNumber |
132 | const username = 'peertube' | 132 | const username = 'peertube' |
133 | const password = 'peertube' | 133 | const password = 'peertube' |
134 | const host = 'localhost' | 134 | const host = '127.0.0.1' |
135 | const port = 5432 | 135 | const port = 5432 |
136 | 136 | ||
137 | this.sequelize = new Sequelize(dbname, username, password, { | 137 | this.sequelize = new Sequelize(dbname, username, password, { |
diff --git a/shared/server-commands/server/server.ts b/shared/server-commands/server/server.ts index f2ca51431..ae1395a74 100644 --- a/shared/server-commands/server/server.ts +++ b/shared/server-commands/server/server.ts | |||
@@ -179,9 +179,9 @@ export class PeerTubeServer { | |||
179 | this.rtmpsPort = this.parallel ? this.randomRTMP() : 1937 | 179 | this.rtmpsPort = this.parallel ? this.randomRTMP() : 1937 |
180 | this.port = 9000 + this.internalServerNumber | 180 | this.port = 9000 + this.internalServerNumber |
181 | 181 | ||
182 | this.url = `http://localhost:${this.port}` | 182 | this.url = `http://127.0.0.1:${this.port}` |
183 | this.host = `localhost:${this.port}` | 183 | this.host = `127.0.0.1:${this.port}` |
184 | this.hostname = 'localhost' | 184 | this.hostname = '127.0.0.1' |
185 | } | 185 | } |
186 | 186 | ||
187 | setUrl (url: string) { | 187 | setUrl (url: string) { |
diff --git a/shared/server-commands/videos/live.ts b/shared/server-commands/videos/live.ts index ee7444b64..578e6ede7 100644 --- a/shared/server-commands/videos/live.ts +++ b/shared/server-commands/videos/live.ts | |||
@@ -39,6 +39,7 @@ function sendRTMPStream (options: { | |||
39 | 39 | ||
40 | if (process.env.DEBUG) { | 40 | if (process.env.DEBUG) { |
41 | command.on('stderr', data => console.log(data)) | 41 | command.on('stderr', data => console.log(data)) |
42 | command.on('stdout', data => console.log(data)) | ||
42 | } | 43 | } |
43 | 44 | ||
44 | command.run() | 45 | command.run() |