diff options
Diffstat (limited to 'shared/extra-utils/miscs/sql.ts')
-rw-r--r-- | shared/extra-utils/miscs/sql.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/shared/extra-utils/miscs/sql.ts b/shared/extra-utils/miscs/sql.ts index 1961a8762..dfe840d8c 100644 --- a/shared/extra-utils/miscs/sql.ts +++ b/shared/extra-utils/miscs/sql.ts | |||
@@ -1,6 +1,5 @@ | |||
1 | import { QueryTypes, Sequelize } from 'sequelize' | 1 | import { QueryTypes, Sequelize } from 'sequelize' |
2 | import { ServerInfo } from '../server/servers' | 2 | import { ServerInfo } from '../server/servers' |
3 | import { PluginType } from '../../models/plugins/plugin.type' | ||
4 | 3 | ||
5 | let sequelizes: { [ id: number ]: Sequelize } = {} | 4 | let sequelizes: { [ id: number ]: Sequelize } = {} |
6 | 5 | ||
@@ -10,7 +9,7 @@ function getSequelize (internalServerNumber: number) { | |||
10 | const dbname = 'peertube_test' + internalServerNumber | 9 | const dbname = 'peertube_test' + internalServerNumber |
11 | const username = 'peertube' | 10 | const username = 'peertube' |
12 | const password = 'peertube' | 11 | const password = 'peertube' |
13 | const host = 'localhost' | 12 | const host = process.env.GITLAB_CI ? 'postgres' : 'localhost' |
14 | const port = 5432 | 13 | const port = 5432 |
15 | 14 | ||
16 | const seq = new Sequelize(dbname, username, password, { | 15 | const seq = new Sequelize(dbname, username, password, { |