Skip to content

Instantly share code, notes, and snippets.

@SalemHarrache
Created August 16, 2012 10:22
Show Gist options
  • Save SalemHarrache/3369094 to your computer and use it in GitHub Desktop.
Save SalemHarrache/3369094 to your computer and use it in GitHub Desktop.
virtual env setup at alwaysdata
## 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