adjust for compose running

master
lza_menace 2 years ago
parent 170eb52f77
commit 75123fa855

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

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

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

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

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

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

Loading…
Cancel
Save