mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-09 22:33:09 +02:00
Add support for non-default database ports
This commit is contained in:
parent
74fa568a7c
commit
52633122c7
@ -2,6 +2,7 @@ DISCORD_TOKEN=
|
|||||||
HTTP_PORT=8080
|
HTTP_PORT=8080
|
||||||
DB_TYPE=sqlite
|
DB_TYPE=sqlite
|
||||||
DB_HOST=
|
DB_HOST=
|
||||||
|
DB_PORT=
|
||||||
DB_NAME=
|
DB_NAME=
|
||||||
DB_USER=
|
DB_USER=
|
||||||
DB_PASS=
|
DB_PASS=
|
||||||
|
@ -12,6 +12,7 @@ module.exports = async (log) => {
|
|||||||
const {
|
const {
|
||||||
DB_TYPE,
|
DB_TYPE,
|
||||||
DB_HOST,
|
DB_HOST,
|
||||||
|
DB_PORT,
|
||||||
DB_USER,
|
DB_USER,
|
||||||
DB_PASS,
|
DB_PASS,
|
||||||
DB_NAME,
|
DB_NAME,
|
||||||
@ -47,6 +48,7 @@ module.exports = async (log) => {
|
|||||||
sequelize = new Sequelize(DB_NAME, DB_USER, DB_PASS, {
|
sequelize = new Sequelize(DB_NAME, DB_USER, DB_PASS, {
|
||||||
dialect: types[type].dialect,
|
dialect: types[type].dialect,
|
||||||
host: DB_HOST,
|
host: DB_HOST,
|
||||||
|
port: DB_PORT,
|
||||||
logging: log.debug
|
logging: log.debug
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user