Created
August 16, 2012 10:22
-
-
Save SalemHarrache/3369094 to your computer and use it in GitHub Desktop.
virtual env setup at alwaysdata
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
## log via ssh | |
mkdir ~/modules/ | |
## add modules to python path in your .bashrc | |
export PYTHONPATH=~/modules/ | |
## source .bashrc | |
## install pip & virtualenv | |
easy_install-2.6 --install-dir ~/modules -U pip | |
easy_install-2.6 --install-dir ~/modules -U virtualenv | |
## add this to .bashrc | |
export PATH=$HOME/modules/bin:$HOME/modules/:$PATH | |
## source .bashrc | |
## virtualenv Activatio | |
## Change app.fcgi pr app.wsgi file | |
#!/usr/bin/env python | |
# Set up virtualenv | |
venv = '/home/px/.virtualenvs/myenv/bin/activate_this.py' | |
execfile(venv, dict(__file__=venv)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment