use different port
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2022-02-13 21:10:02 +01:00
parent da7dd7eec6
commit 03df7ddb8a
2 changed files with 3 additions and 3 deletions

View File

@ -7,5 +7,5 @@ RUN pip3 install -r requirements.txt
ENV GUNICORN_LOGLEVEL="info" ENV GUNICORN_LOGLEVEL="info"
EXPOSE 8000 EXPOSE 8080
CMD ["gunicorn", "-b", "0.0.0.0:8000", "--log-level", "${GUNICORN_LOGLEVEL}", "app:app"] CMD ["gunicorn", "-b", "0.0.0.0:8080", "--log-level", "${GUNICORN_LOGLEVEL}", "app:app"]

View File

@ -5,5 +5,5 @@ from .db import db
class Ingredient(db.Model): class Ingredient(db.Model):
__tablename__ = 'Ingredient' __tablename__ = 'Ingredient'
id = db.Column(db.Integer, primary_key=True) 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')) meal_id = db.Column(db.Integer, db.ForeignKey('Meal.id'))