mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
add second web server, work around docker compose bug
This commit is contained in:
@@ -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);
|
||||
})
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user