adjust for compose running

master
lza_menace 2 years ago
parent 170eb52f77
commit 75123fa855

@ -1,3 +1,3 @@
.env
.venv .venv
*.db* *.db
.env

@ -1,3 +1,3 @@
.venv .venv
*.pyc *.pyc
*.db* *.db

@ -16,6 +16,4 @@ COPY . .
RUN chown -R lws-web:lws-web . RUN chown -R lws-web:lws-web .
RUN python3 -m venv .venv RUN python3 -m venv .venv
RUN .venv/bin/pip install poetry RUN .venv/bin/pip install poetry
RUN .venv/bin/poetry install RUN .venv/bin/poetry install
CMD ".venv/bin/poetry run start"

@ -1,7 +1,4 @@
from lws.factory import create_app from lws.factory import create_app
from lws import config
run = create_app().run(host=config.HOST)
app = create_app()
if __name__ == '__main__':
app.run()

@ -4,6 +4,7 @@ from dotenv import load_dotenv
load_dotenv() load_dotenv()
HOST = env.get("HOST", "127.0.0.1")
TEMPLATES_AUTO_RELOAD = True TEMPLATES_AUTO_RELOAD = True
DEBUG = 1 == env.get("DEBUG", 1) DEBUG = 1 == env.get("DEBUG", 1)
QUART_ENV = env.get("QUART_ENV", "development") QUART_ENV = env.get("QUART_ENV", "development")

@ -6,7 +6,7 @@ from peewee import *
from lws import config from lws import config
db = SqliteDatabase('data/lws.db') db = SqliteDatabase('lws.db')
class User(Model): class User(Model):

Loading…
Cancel
Save