21bf9beb74 | ||
---|---|---|
Ultron | ||
followup | ||
location | ||
objective | ||
people | ||
planning | ||
profiles | ||
static | ||
templates | ||
tools | ||
.gitignore | ||
Procfile | ||
README.md | ||
docker-compose.yml | ||
manage.py | ||
requirements.txt |
README.md
Ultron
Deploiement sur Heroku
-
Créer l'application sur Heroku
-
Créer les variables d'environnement :
- ALLOWED_HOSTS : avengers-ultron.herokuapp.com
- DATABASE_NAME : ultron
- DISABLE_COLLECTSTATIC : 1
- SECRET_KEY : django-insecure-g_eoy6z%xshku4o5#k%o%i_%nb%pz80config#+t%f --> DATABASE_URL est créé automatiquement
heroku config:set DISABLE_COLLECTSTATIC="1" heroku config:set ALLOWED_HOSTS="avengers-ultron.herokuapp.com" heroku config:set SECRET_KEY="django-insecure-g_eoy6z%xshku4o5#k%o%i_%nb%_pz80config_#+t%f" heroku config:set DATABASE_NAME="ultron"
-
Push de l'application
-
Création du super user :
heroku run python manage.py createsuperuser