mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 10:22:46 +00:00
Merge pull request #1433 from jamietanna/virtualenv
Add instructions for how to set up in a virtualenv
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -36,3 +36,4 @@ docs/_build/*
|
|||||||
deps
|
deps
|
||||||
ghostdriver.log
|
ghostdriver.log
|
||||||
seahub/thumbnail/thumb/*
|
seahub/thumbnail/thumb/*
|
||||||
|
.virtualenv
|
||||||
|
@@ -17,9 +17,14 @@ You can grab souce code from GitHub.
|
|||||||
|
|
||||||
$ git clone git://github.com/haiwen/seahub.git
|
$ 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:
|
Install python libraries by pip:
|
||||||
|
|
||||||
pip install -r requirements.txt
|
$ pip install -r requirements.txt
|
||||||
|
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
@@ -38,7 +43,8 @@ Run and Verify
|
|||||||
|
|
||||||
Run as:
|
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.
|
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.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user