aboutsummaryrefslogtreecommitdiff
path: root/README-wqflask.txt
blob: 03e3a1cc4a015c1b34139e27a0c16cf16d83e384 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
This readme concerns the directory wqflask - an officially sanctioned fork of the main GeneNetwork
code.  It's still very early in the process - but we eventually want to port all of the code
in GeneNetwork to Flask and Jinja2.  For more information about the project in general, see
the file README.md.

For more information about the port to Flask, please keep reading.

*************************

Requirements:

* Python 2.7

* virtualenv 1.7.1.2 or later

* Other python dependencies are listed in the file wqflask/requirements.txt

**************************

Installation:

We highly recommend you create a virtual enviornment called ve27 in your home directory.


Get into your home directory
> cd ~

Create a virtual environment
> virtualenv ve27

Activate the environment
> source ~/ve27/bin/activate

Install dependencies
> pip install -r ~/gene/wqflask/requirements.txt
(Or replace gene with the name of the directory holding your repository)

**************************

Running the program:

Assuming your enviornment is activated (source ~/ve27/bin/activate) just run:

> python ~/gene/wqflask/runserver.py

The program as configured runs on port 5000 and does not serve static files.

You'll have to run a webserver to serve pages on port 80 and to server the static files (or
flask could also be configured to serve the static pages).

A sample configuration file for nginx is in the directory: wqflask/other_config/nginx.conf