Compare commits

...

2 Commits

Author SHA1 Message Date
Stepan Vladovskiy
2ba6aa64d2 debug: route to / instead of /upload
All checks were successful
Deploy on Push / deploy (push) Successful in 1m23s
2024-05-05 22:34:07 -03:00
Stepan Vladovskiy
cc36b46fd7 feat: dev branch deploying on staging
All checks were successful
Deploy on Push / deploy (push) Successful in 1m53s
2024-05-05 16:27:22 -03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -31,6 +31,6 @@ jobs:
uses: dokku/github-action@master
with:
branch: 'main'
git_remote_url: 'ssh://dokku@stagging.discours.io:22/uploader'
git_remote_url: 'ssh://dokku@staging.discours.io:22/uploader'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}

View File

@@ -59,7 +59,7 @@ async def upload_handler(request: Request):
return JSONResponse({'error': 'Failed to upload file'}, status_code=500)
routes = [
Route('/upload', upload_handler, methods=['POST']),
Route('/', upload_handler, methods=['POST']),
]
app = Starlette(debug=True, routes=routes)