From 044fb1722869fee328efc4ad6008c13ba8bda135 Mon Sep 17 00:00:00 2001 From: Clemens Wolff Date: Mon, 28 Jan 2019 14:55:27 -0500 Subject: [PATCH] Move heroku deployment to Docker --- Pipfile | 24 ------------------------ Procfile | 1 - README.md | 10 ++++++++++ heroku.yml | 6 ++++++ 4 files changed, 16 insertions(+), 25 deletions(-) delete mode 100644 Pipfile delete mode 100644 Procfile create mode 100644 heroku.yml diff --git a/Pipfile b/Pipfile deleted file mode 100644 index 3f3a5257..00000000 --- a/Pipfile +++ /dev/null @@ -1,24 +0,0 @@ -[[source]] - -url = "https://pypi.python.org/simple" -verify_ssl = true -name = "pypi" - - -[requires] - -python_version = "3.6" - - -[packages] - -"psycopg2-binary" = "*" -django-heroku = "*" -gunicorn = "*" -django-widget-tweaks = "*" -djangorestframework = "*" -django-filter = "*" -dj-database-url = "*" -whitenoise = "*" - -[dev-packages] diff --git a/Procfile b/Procfile deleted file mode 100644 index ac3a3657..00000000 --- a/Procfile +++ /dev/null @@ -1 +0,0 @@ -web: gunicorn --pythonpath app app.wsgi diff --git a/README.md b/README.md index bdc14956..0470cbb1 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,16 @@ Doccano can be deployed to Azure ([Web App for Containers](https://azure.microso [![Deploy to Azure](https://azuredeploy.net/deploybutton.svg)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fchakki-works%2Fdoccano%2Fmaster%2Fazuredeploy.json) +### Heroku + +Doccano can be deployed to [Heroku](https://www.heroku.com/) by following these steps: + +```bash +heroku create +heroku stack:set container +git push heroku master +``` + ## Features * Collaborative annotation diff --git a/heroku.yml b/heroku.yml new file mode 100644 index 00000000..3ed4e336 --- /dev/null +++ b/heroku.yml @@ -0,0 +1,6 @@ +build: + docker: + web: Dockerfile + +run: + web: /doccano/tools/run.sh