From c1751d2c94b8e322a972f36d986dc2c993bd7661 Mon Sep 17 00:00:00 2001 From: Trey t Date: Mon, 26 Jun 2023 14:55:01 -0500 Subject: [PATCH] WIP --- misc/dokku/CHECKS => CHECKS | 0 misc/dokku/DOKKU_SCALE => DOKKU_SCALE | 0 Dockerfile | 4 ---- Procfile | 3 +++ misc/dokku/app.json => app.json | 0 misc/dokku/Procfile | 2 -- misc/dokku/uwsgi.ini => uwsgi.ini | 0 7 files changed, 3 insertions(+), 6 deletions(-) rename misc/dokku/CHECKS => CHECKS (100%) rename misc/dokku/DOKKU_SCALE => DOKKU_SCALE (100%) create mode 100644 Procfile rename misc/dokku/app.json => app.json (100%) delete mode 100644 misc/dokku/Procfile rename misc/dokku/uwsgi.ini => uwsgi.ini (100%) diff --git a/misc/dokku/CHECKS b/CHECKS similarity index 100% rename from misc/dokku/CHECKS rename to CHECKS diff --git a/misc/dokku/DOKKU_SCALE b/DOKKU_SCALE similarity index 100% rename from misc/dokku/DOKKU_SCALE rename to DOKKU_SCALE diff --git a/Dockerfile b/Dockerfile index d6d1c0d..3f28b9b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,10 +8,6 @@ RUN apt-get update RUN apt-get install -y swig libssl-dev dpkg-dev netcat RUN pip install -U pip -# Add the Dokku-specific files to their locations. -ADD misc/dokku/CHECKS /app/ -ADD misc/dokku/* /code/ - WORKDIR /code COPY requirements.txt /code/ RUN pip install -r requirements.txt diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..6d4abbc --- /dev/null +++ b/Procfile @@ -0,0 +1,3 @@ +web: gunicorn werkout_api.wsgi:application --port 5000 --bind 0.0.0.0 +beat: /usr/local/bin/celery -A werkout_api beat -linfo +worker: /usr/local/bin/celery-A werkout_api worker -l info \ No newline at end of file diff --git a/misc/dokku/app.json b/app.json similarity index 100% rename from misc/dokku/app.json rename to app.json diff --git a/misc/dokku/Procfile b/misc/dokku/Procfile deleted file mode 100644 index eb2d8cd..0000000 --- a/misc/dokku/Procfile +++ /dev/null @@ -1,2 +0,0 @@ -web: /usr/local/bin/uwsgi --chdir=/code --ini=/code/uwsgi.ini -worker: /usr/local/bin/celery -A werkout_api worker -P gevent \ No newline at end of file diff --git a/misc/dokku/uwsgi.ini b/uwsgi.ini similarity index 100% rename from misc/dokku/uwsgi.ini rename to uwsgi.ini