Updated more things with postgres move
This commit is contained in:
@@ -9,14 +9,13 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
volumes:
|
|
||||||
- ${DB_PATH}:/app/data
|
|
||||||
environment:
|
environment:
|
||||||
- TOKEN=${TOKEN}
|
- TOKEN=${TOKEN}
|
||||||
- MONGOURI=${MONGOURI}
|
- MONGOURI=${MONGOURI}
|
||||||
- DEV=${DEV}
|
- DEV=${DEV}
|
||||||
- HYPIXELAPIKEY=${HYPIXELAPIKEY}
|
- HYPIXELAPIKEY=${HYPIXELAPIKEY}
|
||||||
- REDISURI=${REDISURI}
|
- REDISURI=${REDISURI}
|
||||||
|
- POSTGRESURI=${POSTGRESURI}
|
||||||
db:
|
db:
|
||||||
container_name: postgres
|
container_name: postgres
|
||||||
image: postgres
|
image: postgres
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { ExtendedClient as Client } from "utils/Client"
|
|||||||
import color from "utils/functions/colors"
|
import color from "utils/functions/colors"
|
||||||
import { Redis } from "ioredis"
|
import { Redis } from "ioredis"
|
||||||
import env from "utils/Env"
|
import env from "utils/Env"
|
||||||
import { connect } from "mongoose"
|
// import { connect } from "mongoose"
|
||||||
import loadAllEvents from "./Events"
|
import loadAllEvents from "./Events"
|
||||||
import { Player } from "discord-player"
|
import { Player } from "discord-player"
|
||||||
import { Sequelize } from "sequelize"
|
import { Sequelize } from "sequelize"
|
||||||
@@ -32,9 +32,9 @@ class Illegitimate {
|
|||||||
redis.on("ready", () => {
|
redis.on("ready", () => {
|
||||||
console.log(color("Connected to Redis", "green"))
|
console.log(color("Connected to Redis", "green"))
|
||||||
})
|
})
|
||||||
connect(env.prod.mongoURI!, {}).then(() => {
|
// connect(env.prod.mongoURI!, {}).then(() => {
|
||||||
console.log(color("Connected to MongoDB", "green"))
|
// console.log(color("Connected to MongoDB", "green"))
|
||||||
})
|
// })
|
||||||
sequelize.sync().then(() => {
|
sequelize.sync().then(() => {
|
||||||
console.log(color("Connected to Postgres", "green"))
|
console.log(color("Connected to Postgres", "green"))
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user