This commit is contained in:
parent
da7dd7eec6
commit
03df7ddb8a
@ -7,5 +7,5 @@ RUN pip3 install -r requirements.txt
|
||||
|
||||
ENV GUNICORN_LOGLEVEL="info"
|
||||
|
||||
EXPOSE 8000
|
||||
CMD ["gunicorn", "-b", "0.0.0.0:8000", "--log-level", "${GUNICORN_LOGLEVEL}", "app:app"]
|
||||
EXPOSE 8080
|
||||
CMD ["gunicorn", "-b", "0.0.0.0:8080", "--log-level", "${GUNICORN_LOGLEVEL}", "app:app"]
|
@ -5,5 +5,5 @@ from .db import db
|
||||
class Ingredient(db.Model):
|
||||
__tablename__ = 'Ingredient'
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
name = db.Column(db.String, nullable=False, unique=True)
|
||||
name = db.Column(db.String(255), nullable=False, unique=True)
|
||||
meal_id = db.Column(db.Integer, db.ForeignKey('Meal.id'))
|
||||
|
Loading…
Reference in New Issue
Block a user