add second web server, work around docker compose bug

This commit is contained in:
AlecM33
2024-03-04 20:39:11 -05:00
parent 5573313b70
commit 1b24d61091
7 changed files with 27 additions and 13 deletions

View File

@@ -35,7 +35,7 @@ const ServerBootstrapper = {
try {
const args = Array.from(process.argv.map((arg) => arg.trim().toLowerCase()));
const useHttps = args.includes('protocol=https');
const port = process.env.PORT || args
const port = process.env.WEB_PORT || args
.filter((arg) => {
return /port=\d+/.test(arg);
})

View File

@@ -26,9 +26,7 @@ class EventManager {
createRedisPublisher = async () => {
this.publisher = process.env.NODE_ENV.trim() === 'development'
? redis.createClient({
socket: {
host: process.env.REDIS_HOST, port: process.env.REDIS_PORT
}
url: process.env.REDIS_URL_DEV
})
: redis.createClient({
url: process.env.REDIS_URL