fix: address incorrect host
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
[config]
|
||||
SCM_DO_BUILD_DURING_DEPLOYMENT=true
|
||||
8
.github/workflows/main_tetris-clone.yml
vendored
8
.github/workflows/main_tetris-clone.yml
vendored
@@ -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
|
||||
2
main.py
2
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()
|
||||
Reference in New Issue
Block a user