Fixed docker deploments, moved files to _folders in dispatch app
This commit is contained in:
@@ -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}`);
|
||||
});
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user