fix: address incorrect host

This commit is contained in:
2021-07-01 01:24:14 -04:00
parent 0ba194c872
commit e499c23d1b
3 changed files with 8 additions and 4 deletions

View File

@@ -1,2 +0,0 @@
[config]
SCM_DO_BUILD_DURING_DEPLOYMENT=true

View File

@@ -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

View File

@@ -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()