Backend container works with autoreloading.. :-)

This commit is contained in:
cami 2021-06-22 02:26:23 +02:00
parent 02fc2bb4ef
commit 001db06659
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ db = flask_sqlalchemy.SQLAlchemy()
guard = flask_praetorian.Praetorian()
cors = flask_cors.CORS()
class User(db.model):
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.Text, unique=True)
password = db.Column(db.Text)

View file

@ -20,7 +20,7 @@ services:
dockerfile: Dockerfile
tty: true
volumes:
- ./backend:/app
- ./backend/src:/app/
ports:
- 5000:5000
environment: