Skip to content

Commit

Permalink
Add instructions for how to set up in a virtualenv
Browse files Browse the repository at this point in the history
Using a virtualenv is much better than globally installing all of the
project's dependencies, as it doesn't pollute the global package space,
and allows us to work just within the project folder.
  • Loading branch information
jamietanna committed Dec 23, 2016
1 parent 91e0085 commit 9b36b9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ docs/_build/*
deps
ghostdriver.log
seahub/thumbnail/thumb/*
.virtualenv
10 changes: 8 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ You can grab souce code from GitHub.

$ git clone git://github.com/haiwen/seahub.git

Set up a virtualenv to install dependencies locally:

$ virtualenv .virtualenv
$ . .virtualenv/bin/activate

Install python libraries by pip:

pip install -r requirements.txt
$ pip install -r requirements.txt


Configuration
Expand All @@ -38,7 +43,8 @@ Run and Verify

Run as:

./run-seahub.sh.template
$ . .virtualenv/bin/activate
$ ./run-seahub.sh.template

Then open your browser, and input `http://localhost:8000/`, there should be a Login page. You can create admin account using `seahub-admin.py` script under `tools/` directory.

Expand Down

0 comments on commit 9b36b9e

Please sign in to comment.