Compare commits

...

8 Commits

Author SHA1 Message Date
Łukasz Jędyk
83ff7d9144 procfile fix 2022-06-09 21:30:11 +02:00
Łukasz Jędyk
96697e52aa procfile try 2022-06-09 21:23:01 +02:00
Łukasz Jędyk
09c3b3cccc fix port gunicorn 3 2022-06-09 21:10:51 +02:00
Łukasz Jędyk
a01fd48c64 fix port gunicorn 2 2022-06-09 20:58:50 +02:00
Łukasz Jędyk
d60f54ed35 fix port gunicorn 2022-06-09 20:52:10 +02:00
Łukasz Jędyk
a5f4159a49 FIX GUNICORN 2 2022-06-09 20:45:55 +02:00
Łukasz Jędyk
45f4029509 gunicorn fix 2022-06-09 20:39:59 +02:00
Łukasz Jędyk
aab31f21aa heroku deploy with gunicorn 2022-06-09 19:52:54 +02:00
7 changed files with 6 additions and 29 deletions

View File

@ -1,12 +0,0 @@
FROM python:3
ENV DOCKER_APP True
USER root
WORKDIR /app
COPY . .
#RUN chmod u+x setup_core.sh
#RUN bash setup_core.sh
RUN pip3 install -r requirements.txt
EXPOSE 5000/udp
EXPOSE 5000/tcp
CMD ["python3","-m", "ayct_backend.app"]

1
Procfile Normal file
View File

@ -0,0 +1 @@
web: gunicorn -b 0.0.0.0:$PORT ayct_backend:app --timeout 120

View File

@ -26,4 +26,6 @@ def create_app():
def hello():
return "Hello world!"
return app
return app
app = create_app()

View File

@ -1,7 +0,0 @@
import os
from . import create_app
if __name__ == "__main__":
app = create_app()
port = int(os.environ.get('PORT', 5000))
app.run(host = '0.0.0.0', port = port)

View File

@ -1,3 +0,0 @@
build:
docker:
web: Dockerfile

View File

@ -5,3 +5,5 @@ requests_oauthlib==1.3.0
psycopg2==2.9.3
pytest==6.2.5
google-api-python-client==2.36.0
nltk==3.7
gunicorn==20.1.0

View File

@ -1,6 +0,0 @@
git clone https://git.wmi.amu.edu.pl/s415366/pbr-ayct-core
cd pbr-ayct-core
pip3 install setuptools
python3 -m pip install --upgrade build
python3 -m build
pip3 install dist/pbrAyctCore-0.0.1.tar.gz