Skip to content

Commit

Permalink
Merge pull request EGCETSII#32 from Full-Tortuga/hotfix/set-up-heroku…
Browse files Browse the repository at this point in the history
…-deploy

hotfix/Entorno de despliegue para Heroku
  • Loading branch information
alvechdel authored Jan 3, 2022
2 parents 9c2dcee + b701a0c commit 874c952
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -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 -'
19 changes: 17 additions & 2 deletions decide/decide/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -194,4 +206,7 @@
vars()[k] = v


INSTALLED_APPS = INSTALLED_APPS + MODULES
INSTALLED_APPS = INSTALLED_APPS + MODULES

import django_heroku
django_heroku.settings(locals())
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.7.12

0 comments on commit 874c952

Please sign in to comment.