Skip to content

Commit

Permalink
gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Aug 5, 2018
1 parent 20a705f commit 2c90f56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ FROM python:3.6

ENV FLASK_APP gentelella.py

COPY gentelella.py gunicorn_config.py requirements.txt ./
COPY gentelella.py gunicorn.py requirements.txt ./
COPY app app
COPY migrations migrations

RUN pip install -r requirements.txt

EXPOSE 5000
CMD ["gunicorn", "--config", "gunicorn_config.py", "gentelella:app"]
CMD ["gunicorn", "--config", "gunicorn.py", "gentelella:app"]
4 changes: 2 additions & 2 deletions app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from app.config import DebugConfig
from app.config import ProductionConfig
from flask import Flask
from flask_login import LoginManager
from flask_sqlalchemy import SQLAlchemy
Expand Down Expand Up @@ -39,7 +39,7 @@ def configure_logs(app):

def create_app(selenium=False):
app = Flask(__name__, static_folder='base/static')
app.config.from_object(DebugConfig)
app.config.from_object(ProductionConfig)
if selenium:
app.config['LOGIN_DISABLED'] = True
register_extensions(app)
Expand Down
File renamed without changes.

0 comments on commit 2c90f56

Please sign in to comment.