S3 file upload support
This commit is contained in:
parent
fb98314bf4
commit
778b629fde
15 changed files with 539 additions and 404 deletions
|
|
@ -1,18 +1,7 @@
|
|||
import { config as LoadDotenv } from "dotenv";
|
||||
import winston from "winston";
|
||||
import app from "./app";
|
||||
import { LOGGER } from "./app/util/Logger";
|
||||
import ConnectDb from "./db";
|
||||
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
LoadDotenv();
|
||||
LOGGER.add(
|
||||
new winston.transports.Console({
|
||||
format: winston.format.simple(),
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
ConnectDb();
|
||||
|
||||
const port = process.env.PORT || 3000;
|
||||
|
|
|
|||
Loading…
Reference in a new issue