mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-05 21:38:06 +03:00
dont fucking need mongo_url
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
NODE_ENV="dev"
|
||||
REDIS_URL="tachi-redis"
|
||||
MONGO_URL="tachi-mongo"
|
||||
PORT=8080
|
||||
LOG_LEVEL="debug"
|
||||
MSGPACKR_NATIVE_ACCELERATION_DISABLED=true
|
||||
@@ -9,7 +8,6 @@ POSTGRES_URL="postgresql://tachi:tachi@tachi-postgres/tachi_dev"
|
||||
MIGRATIONS_DIR="/tachi/db/migrations"
|
||||
|
||||
REDIS_URL=tachi-redis
|
||||
MONGO_URL=tachi-mongo
|
||||
PORT=8080
|
||||
MIGRATIONS_DIR=/tachi/db/migrations
|
||||
LOG_LEVEL=debug
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
NODE_ENV=
|
||||
PORT=
|
||||
REDIS_URL=
|
||||
MONGO_URL=
|
||||
POSTGRES_URL=
|
||||
MIGRATIONS_DIR=
|
||||
VERSION=
|
||||
|
||||
@@ -481,13 +481,6 @@ if (!REDIS_URL) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const MONGO_URL = process.env.MONGO_URL;
|
||||
|
||||
if (!MONGO_URL) {
|
||||
log.error(`No MONGO_URL specified in environment. Terminating.`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const NODE_ENV = process.env.NODE_ENV;
|
||||
|
||||
if (!NODE_ENV) {
|
||||
@@ -547,7 +540,6 @@ if (!commitHash) {
|
||||
export const Env = {
|
||||
PORT,
|
||||
REDIS_URL,
|
||||
MONGO_URL,
|
||||
POSTGRES_URL,
|
||||
MIGRATIONS_DIR,
|
||||
VERSION: version,
|
||||
|
||||
@@ -34,7 +34,6 @@ export default defineConfig({
|
||||
env: {
|
||||
NODE_ENV: "test",
|
||||
PORT: "8080",
|
||||
MONGO_URL: "tachi-mongo",
|
||||
REDIS_URL: "tachi-redis",
|
||||
MIGRATIONS_DIR: "/tachi/db/migrations",
|
||||
LOG_LEVEL: "warn",
|
||||
|
||||
Reference in New Issue
Block a user