Compare commits

...

4 Commits

Author SHA1 Message Date
2268367a16 Merge pull request 'fix' (#39) from master into prod
Reviewed-on: #39
2024-12-29 13:28:54 +03:00
Egor Matveev
047223ec31 fix
All checks were successful
Deploy Dev / Build (pull_request) Successful in 11s
Deploy Dev / Push (pull_request) Successful in 31s
Deploy Dev / Deploy dev (pull_request) Successful in 12s
Deploy Prod / Build (pull_request) Successful in 5s
Deploy Prod / Push (pull_request) Successful in 7s
Deploy Prod / Deploy prod (pull_request) Successful in 7s
2024-12-29 13:28:36 +03:00
437eacb773 Merge pull request 'fix' (#38) from master into prod
Reviewed-on: #38
2024-12-29 13:21:19 +03:00
Egor Matveev
d4dc42451b fix
All checks were successful
Deploy Prod / Build (pull_request) Successful in 5s
Deploy Prod / Push (pull_request) Successful in 7s
Deploy Prod / Deploy prod (pull_request) Successful in 6s
2024-12-29 13:20:14 +03:00
3 changed files with 4 additions and 3 deletions

View File

@@ -10,8 +10,6 @@ services:
MONGO_HOST: "mongo.sprinthub.ru"
MONGO_PASSWORD: $MONGO_PASSWORD_PROD
STAGE: "production"
ports:
- 1239:1239
deploy:
mode: replicated
restart_policy:

View File

@@ -10,4 +10,4 @@ COPY . .
ENV PYTHONUNBUFFERED=1
ENTRYPOINT ["fastapi", "run", "main.py", "--port", "1239"]
ENTRYPOINT ["python", "main.py"]

View File

@@ -22,3 +22,6 @@ async def unicorn_exception_handler(request: fastapi.Request, exc: Exception):
)
mongo.create_indexes()
if __name__ == '__main__':
uvicorn.run(app, host="0.0.0.0", port=1239)