Fixed docker deploments, moved files to _folders in dispatch app

This commit is contained in:
PxlLoewe
2025-05-27 17:34:44 -07:00
parent 5d5b2dc91f
commit 571ddfba85
60 changed files with 251 additions and 406 deletions

View File

@@ -47,6 +47,6 @@ app.use(cookieParser());
app.use(authMiddleware as any);
app.use(router);
server.listen(process.env.PORT, () => {
console.log(`Server running on port ${process.env.PORT}`);
server.listen(process.env.DISPATCH_SERVER_PORT, () => {
console.log(`Server running on port ${process.env.DISPATCH_SERVER_PORT}`);
});

View File

@@ -1,6 +1,8 @@
import { createClient, RedisClientType } from "redis";
export const pubClient: RedisClientType = createClient();
export const pubClient: RedisClientType = createClient({
url: `redis://${process.env.REDIS_HOST}:${process.env.REDIS_PORT}`,
});
export const subClient: RedisClientType = pubClient.duplicate();
Promise.all([pubClient.connect(), subClient.connect()]).then(() => {

View File

@@ -5,7 +5,7 @@
},
"scripts": {
"dev": "nodemon --signal SIGINT",
"start": "node index.js",
"start": "tsx index.ts --transpile-only",
"build": "tsc"
},
"devDependencies": {
@@ -34,6 +34,7 @@
"nodemailer": "^6.10.0",
"react": "^19.0.0",
"redis": "^4.7.0",
"socket.io": "^4.8.1"
"socket.io": "^4.8.1",
"tsx": "^4.19.4"
}
}