Fix volume and add close on reset migration
This commit is contained in:
parent
bfe744343d
commit
5906464f3a
2 changed files with 2 additions and 1 deletions
1
app.py
1
app.py
|
@ -13,6 +13,7 @@ if (not isdir("/TelegramEDT/alembic")) and isfile("/TelegramEDT/edt.db"):
|
||||||
c = connect("/TelegramEDT/edt.db")
|
c = connect("/TelegramEDT/edt.db")
|
||||||
c.execute("delete from alembic_version;")
|
c.execute("delete from alembic_version;")
|
||||||
c.commit()
|
c.commit()
|
||||||
|
c.close()
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
webhook_secret = environ.get("webhook_secret")
|
webhook_secret = environ.get("webhook_secret")
|
||||||
|
|
|
@ -5,7 +5,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- nginx_web
|
- nginx_web
|
||||||
volumes:
|
volumes:
|
||||||
- ./TelegramEDT/TelegramEDT:/TelegramEDT
|
- ./TelegramEDT:/TelegramEDT
|
||||||
env_file:
|
env_file:
|
||||||
- webhook_secret.env
|
- webhook_secret.env
|
||||||
|
|
||||||
|
|
Reference in a new issue