Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- echo "Setting up global variables"
- export DB_DRIVER='sqlite'
- echo DB_DRIVER
- echo $DB_DRIVER
- export DB_ENGINE = 'django.db.backends.sqlite3'
- echo DB_ENGINE
- echo $DB_ENGINE
- export DB_HOST='localhost'
- echo DB_HOST
- echo $DB_HOST
- export DB_PORT=5432
- echo DB_PORT
- echo $DB_PORT
- export DB_NAME='db.sqlite3'
- echo DB_NAME
- echo $DB_NAME
- export DB_USERNAME='root'
- echo DB_USERNAME
- echo $DB_USERNAME
- export DB_PASSWORD='root'
- echo DB_PASSWORD
- echo $DB_PASSWORD
- echo 'Installing virtualenvwrapper'
- pip install virtualenvwrapper
- python mkvirtualenv env
- echo 'Setting up virtualenvwrapper'
- export WORKON_HOME=~/Envs
- mkdir -p $WORKON_HOME
- source /usr/local/bin/virtualenvwrapper.sh
- mkvirtualenv env
- echo 'Installing dependencies'
- pip install -r requirements.txt
- echo 'Running migrations'
- python manage.py migrate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement