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