From e499c23d1b14077a1f31c54dcae8a53f474856be Mon Sep 17 00:00:00 2001 From: Giovani Date: Thu, 1 Jul 2021 01:24:14 -0400 Subject: [PATCH] fix: address incorrect host --- .deployment | 2 -- .github/workflows/main_tetris-clone.yml | 8 +++++++- main.py | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) delete mode 100644 .deployment diff --git a/.deployment b/.deployment deleted file mode 100644 index 6278331..0000000 --- a/.deployment +++ /dev/null @@ -1,2 +0,0 @@ -[config] -SCM_DO_BUILD_DURING_DEPLOYMENT=true \ No newline at end of file diff --git a/.github/workflows/main_tetris-clone.yml b/.github/workflows/main_tetris-clone.yml index a6f6b1d..be74a97 100644 --- a/.github/workflows/main_tetris-clone.yml +++ b/.github/workflows/main_tetris-clone.yml @@ -48,6 +48,11 @@ jobs: url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} steps: + - name: Set up Python version + uses: actions/setup-python@v1 + with: + python-version: '3.9' + - name: Download artifact from build job uses: actions/download-artifact@v2 with: @@ -62,6 +67,7 @@ jobs: publish-profile: ${{ secrets.AzureAppService_PublishProfile_ba3d879df28c472d8865f0591c14832f }} - name: 'Start web socket' + #TODO: Replace pip with requirements.txt run: | - pip install websockets + pip install websockets python main.py \ No newline at end of file diff --git a/main.py b/main.py index a478895..188c6d7 100644 --- a/main.py +++ b/main.py @@ -8,6 +8,6 @@ async def echo(websocket, path): await websocket.send(message) asyncio.get_event_loop().run_until_complete( - websockets.serve(echo, 'tetris-clone.azurewebsites.net', 5000)) + websockets.serve(echo, "", 5000)) print("starting websocket...") asyncio.get_event_loop().run_forever() \ No newline at end of file