Last active
December 27, 2015 12:09
-
-
Save nonamenix/7324026 to your computer and use it in GitHub Desktop.
make django project environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo $0: Creating virtual environment | |
virtualenv_name = ${1:-<myenv>} | |
virtualenv --prompt="$virtualenv_name" ./env | |
mkdir ./logs | |
mkdir ./pids | |
mkdir ./db | |
mkdir ./static_content | |
mkdir ./static_content/media | |
echo $0: Installing dependencies | |
source ./env/bin/activate | |
export PIP_REQUIRE_VIRTUALENV=true | |
./env/bin/pip install --requirement=./requirements.conf --log=./logs/build_pip_packages.log | |
echo $0: Making virtual environment relocatable | |
virtualenv --relocatable ./env | |
echo $0: Creating virtual environment finished. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment