This commit is contained in:
ArabCoders 2023-12-22 22:30:40 +03:00
parent 00f1fe1555
commit a26453448a
2 changed files with 3 additions and 3 deletions

View file

@ -54,8 +54,8 @@ EXPOSE 8081
#
USER app
WORKDIR /app
WORKDIR /tmp
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/app/.venv/bin/python", "app/main.py"]
CMD ["/app/.venv/bin/python", "/app/app/main.py"]

View file

@ -75,7 +75,7 @@ class Main:
f'Could not create database file at {self.config.db_file}')
raise e
caribou.upgrade(self.config.db_file, './app/migrations')
caribou.upgrade(self.config.db_file, os.path.join(os.path.realpath(os.path.dirname(__file__)), 'migrations'))
self.loop = asyncio.get_event_loop()
self.serializer = ObjectSerializer()