fuck this docker shit, gunicorn local

This commit is contained in:
lza_menace 2020-08-11 00:15:11 -07:00
parent 936daacc05
commit ca0c515ddc
5 changed files with 8 additions and 28 deletions

View file

@ -1,6 +0,0 @@
data
flask_session
bin
.venv
.git
.idea

1
.gitignore vendored
View file

@ -7,4 +7,3 @@ __pycache__
*sql
flask_session
config.py
docker-compose.*.yaml

View file

@ -1,7 +0,0 @@
FROM python:slim
WORKDIR /srv
COPY . .
RUN pip3 install -r requirements.txt

8
bin/prod Normal file
View file

@ -0,0 +1,8 @@
#!/bin/bash
source .venv/bin/activate
export FLASK_APP=suchwow/app.py
export FLASK_SECRETS=config.py
export FLASK_DEBUG=0
export FLASK_ENV=production
gunicorn --bind 0.0.0.0:4000 "suchwow.app:app" -D

View file

@ -1,14 +0,0 @@
version: '3'
services:
suchwow:
build:
context: .
command: gunicorn --bind 0.0.0.0:4000 "suchwow.app:app"
labels:
- "traefik.http.routers.http.rule=Host(`localhost`)"
- "traefik.http.routers.http.entrypoints=http"
environment:
FLASK_SECRETS: config.py
FLASK_APP: suchwow/app.py
ports:
- 4000:4000