Skip to content

Commit

Permalink
update some minor environmental things
Browse files Browse the repository at this point in the history
  • Loading branch information
JustRedTTG committed Mar 17, 2024
1 parent 8a40e5d commit 3fbf26e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env-example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SERVER_IP=127.0.0.1
SERVER_HOST=127.0.0.1
SERVER_PORT=9024
5 changes: 5 additions & 0 deletions .github/workflows/publish-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
branches:
- main
paths:
- 'requirements.txt'
- 'server/server.py'
- 'Dockerfile-server'
- 'common/*'

env:
REGISTRY: ghcr.io
Expand Down
2 changes: 1 addition & 1 deletion server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Server(SecurityWrapper):
def __init__(self):
self.clients = {}

super().__init__(os.environ.get('SERVER_HOST', 'localhost'), int(os.environ.get('SERVER_PORT', '9024')))
super().__init__('localhost', 9024)
print(f'Server: {self.host}:{self.port}')

def _receive(self, data, addr):
Expand Down

0 comments on commit 3fbf26e

Please sign in to comment.