diff --git a/Procfile b/Procfile new file mode 100644 index 0000000000..813249a6c6 --- /dev/null +++ b/Procfile @@ -0,0 +1,4 @@ +% prepara el repositorio para su despliegue. +release: sh -c 'cd decide && python manage.py migrate' +% especifica el comando para lanzar Decide +web: sh -c 'cd decide && gunicorn decide.wsgi --log-file -' \ No newline at end of file diff --git a/decide/decide/settings.py b/decide/decide/settings.py index db1f621df5..0fbe0e64b5 100644 --- a/decide/decide/settings.py +++ b/decide/decide/settings.py @@ -82,7 +82,19 @@ 'visualizer', 'voting',''' -BASEURL = 'http://localhost:8000' +APIS = { + 'authentication': BASEURL, + 'base': BASEURL, + 'booth': BASEURL, + 'census': BASEURL, + 'mixnet': BASEURL, + 'postproc': BASEURL, + 'store': BASEURL, + 'visualizer': BASEURL, + 'voting': BASEURL, +} + +BASEURL = 'http://decide-full-tortuga-2.herokuapp.com/' MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', @@ -194,4 +206,7 @@ vars()[k] = v -INSTALLED_APPS = INSTALLED_APPS + MODULES \ No newline at end of file +INSTALLED_APPS = INSTALLED_APPS + MODULES + +import django_heroku +django_heroku.settings(locals()) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index d4eb9951c1..3494b3f29b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,5 +16,6 @@ six==1.16.0 sqlparse==0.2.4 python-telegram-bot==13.9.0 selenium==3.9.0 - +gunicorn +django-heroku diff --git a/runtime.txt b/runtime.txt new file mode 100644 index 0000000000..4a9e57338b --- /dev/null +++ b/runtime.txt @@ -0,0 +1 @@ +python-3.7.12 \ No newline at end of file