let's see
Browse files- 6183919505.session +0 -0
- 6183919505.session-journal +0 -0
- App/app.py +2 -1
- Dockerfile +2 -0
6183919505.session
DELETED
Binary file (28.7 kB)
|
|
6183919505.session-journal
DELETED
Binary file (4.62 kB)
|
|
App/app.py
CHANGED
@@ -43,7 +43,8 @@ async def startup_event():
|
|
43 |
|
44 |
@app.on_event("shutdown")
|
45 |
async def shutdown_event():
|
46 |
-
await bot.
|
|
|
47 |
# await upload_bot.stop()
|
48 |
if not database.is_connected:
|
49 |
await database.disconnect()
|
|
|
43 |
|
44 |
@app.on_event("shutdown")
|
45 |
async def shutdown_event():
|
46 |
+
await bot.disconnect()
|
47 |
+
|
48 |
# await upload_bot.stop()
|
49 |
if not database.is_connected:
|
50 |
await database.disconnect()
|
Dockerfile
CHANGED
@@ -13,5 +13,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
13 |
|
14 |
|
15 |
COPY . /srv
|
|
|
16 |
CMD export PYTHONPATH="${PYTHONPATH}:./App" && uvicorn App.app:app --host 0.0.0.0 --port 7860
|
|
|
17 |
EXPOSE 7860
|
|
|
13 |
|
14 |
|
15 |
COPY . /srv
|
16 |
+
|
17 |
CMD export PYTHONPATH="${PYTHONPATH}:./App" && uvicorn App.app:app --host 0.0.0.0 --port 7860
|
18 |
+
|
19 |
EXPOSE 7860
|