Skip to content

Instantly share code, notes, and snippets.

@bmsleight
Last active January 15, 2016 02:17
Show Gist options
  • Save bmsleight/c88c01ab51a98c21ed38 to your computer and use it in GitHub Desktop.
Save bmsleight/c88c01ab51a98c21ed38 to your computer and use it in GitHub Desktop.
openshift
Make django project
python3 -m venv myvenv
. myvenv/bin/activate
pip install django==1.8
git clone ssh://[email protected]/~/git/splendidsnap.git/
export DEBUG=True
cd splendidsnap/wsgi/myproject/
#SITE_ID = 1
python manage.py migrate
python manage.py runserver 8080
rhc env set DEBUG=True -a splendidsnap
rhc ssh -a splendidsnap
python app-deployments/2016-01-14_20-24-12.502/repo/wsgi/myproject/manage.py makemigrations
python app-deployments/2016-01-14_20-24-12.502/repo/wsgi/myproject/manage.py migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment