I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 996953e2 authored by idk's avatar idk
Browse files

Merge branch 'fix-venv' into 'master'

fix virtualenv setup

Closes #39

See merge request !24
parents 2f768fd6 f544a402
No related branches found
No related tags found
1 merge request!24fix virtualenv setup
......@@ -2,7 +2,9 @@
To run locally (for testing purposes):
- Install proxychains, configure it for Tor
- Install virtualenv and Python 2.7
- (Optional) Install proxychains, configure it for Tor
- Pull in the dependencies:
......@@ -21,9 +23,13 @@ To run locally (for testing purposes):
- Start the webserver:
```
$ source env/bin/activate # activates virtualenv
$ ./runserver.py
$ deactivate # ..s virtualenv
```
(if the shell in use is not bash, you can append its name to the activator if supported: `...ivate.fish`)
- Open the site at http://localhost:5000/
## Running a mirror
......
export venv_dir="env"
export venv="`which virtualenv-2.7 || which virtualenv`"
export spec=""
export venv="`which virtualenv-2.7`"
if [ x"$venv" = x ]; then
export venv="`which virtualenv`"
export spec="-p 2.7"
fi
......@@ -7,7 +7,7 @@ if [ ! $venv ]; then
exit 1
else
if [ ! -d $venv_dir ] ; then
$venv --distribute $venv_dir
$venv $spec $venv_dir
fi
. $venv_dir/bin/activate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment