Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. echo "Setting up global variables"
  4. export DB_DRIVER='sqlite'
  5. echo DB_DRIVER
  6. echo $DB_DRIVER
  7.  
  8. export DB_ENGINE = 'django.db.backends.sqlite3'
  9. echo DB_ENGINE
  10. echo $DB_ENGINE
  11.  
  12. export DB_HOST='localhost'
  13. echo DB_HOST
  14. echo $DB_HOST
  15.  
  16. export DB_PORT=5432
  17. echo DB_PORT
  18. echo $DB_PORT
  19.  
  20. export DB_NAME='db.sqlite3'
  21. echo DB_NAME
  22. echo $DB_NAME
  23.  
  24. export DB_USERNAME='root'
  25. echo DB_USERNAME
  26. echo $DB_USERNAME
  27.  
  28. export DB_PASSWORD='root'
  29. echo DB_PASSWORD
  30. echo $DB_PASSWORD
  31.  
  32. echo 'Installing virtualenvwrapper'
  33. pip install virtualenvwrapper
  34. python mkvirtualenv env
  35.  
  36. echo 'Setting up virtualenvwrapper'
  37. export WORKON_HOME=~/Envs
  38. mkdir -p $WORKON_HOME
  39. source /usr/local/bin/virtualenvwrapper.sh
  40. mkvirtualenv env
  41.  
  42. echo 'Installing dependencies'
  43. pip install -r requirements.txt
  44.  
  45. echo 'Running migrations'
  46. python manage.py migrate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement