Skip to content

Commit

Permalink
🧑 fix: fix dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
asifrahaman13 committed Aug 5, 2024
1 parent 216c876 commit 624219a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 3 additions & 1 deletion config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@
AI71_API_KEY=os.getenv('AI71_API_KEY')
AI71_BASE_URL=os.getenv('AI71_BASE_URL')

OPEN_AI_API_KEY=os.getenv('OPENAI_KEY')
OPEN_AI_API_KEY=os.getenv('OPENAI_KEY')

REDIS_ENDPOINT=os.getenv('REDIS_ENDPOINT')
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ COPY . .
EXPOSE 3000

# Command to build and start the Next.js application with Bun
CMD ["bun","run", "build", "&&", "bun", "run", "start"]
CMD ["bun","run", "build", "&&", "bun", "run", "start", "--host", "0.0.0.0"]
6 changes: 2 additions & 4 deletions src/connection_manager/connection_manager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from fastapi import WebSocket
import redis

from config.config import REDIS_ENDPOINT

"""
The ConnectionManager class is responsible for managing WebSocket connections. It stores the WebSocket objects
Expand All @@ -12,9 +12,7 @@

class ConnectionManager:
def __init__(self):
self.redis_client = redis.Redis(
host="localhost", port=6379, decode_responses=True
)
self.redis_client = redis.from_url(REDIS_ENDPOINT)
self.active_connections = {}

async def connect(
Expand Down

0 comments on commit 624219a

Please sign in to comment.