UncleVasya / Dota2-EU-Ladder

Code stuff for Dota 2 EU Ladder
7 stars 9 forks source link

Online hosting on OpenShift #3

Closed UncleVasya closed 7 years ago

UncleVasya commented 7 years ago

Note to myself.

When creating new app on OpenShift, I need to:

  1. set OPENSHIFT_PYTHON_WSGI_APPLICATION variable:
rhc env set -a ladder OPENSHIFT_PYTHON_WSGI_APPLICATION=dota2_eu_ladder/wsgi.py
rhc app-stop ladder
rhc app-start ladder
  1. create superuser:
rhc ssh ladder
source $OPENSHIFT_PYTHON_DIR/virtenv/bin/activate
cd app-root/repo
python manage.py createsuperuser
UncleVasya commented 7 years ago

Done.