Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyuguan3 committed Feb 1, 2024
1 parent 3bff554 commit 7dc25bb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
with:
python-version: '3.x'

- name: Install Gunicorn
run: |
pip install gunicorn
# - name: Create a requirements file
# run: |
# pip freeze > requirements.txt
Expand All @@ -33,8 +37,12 @@ jobs:
# run: |
# python -m pytest -v

- name: run the app
- name: Run gunicorn_conf.py
run: |
python app.py
gunicorn -c gunicorn_conf.py app:app
# - name: run the app
# run: |
# python app.py


2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Item(BaseModel):

@app.get('/BeginAgain/', response_class=HTMLResponse)
async def game_root():
return templates.TemplateResponse('index.html', {'request': {}})
return templates.TemplateResponse('game.html', {'request': {}})


@app.post('/BeginAgain/init/')
Expand Down
File renamed without changes.

0 comments on commit 7dc25bb

Please sign in to comment.