Blame view

INSTALL.md 1.23 KB
3122f2f8   hitier   Running mode 1: f...
1
2
3
4
5
6
7
8
9
make venv && source activate && pip -r requi..
picharm requirement
run with pycharm
run with apache+wsgi
run with nginx+uwsgi
run through docker
install standalone on your own server
update your server installation
ress/flaskenv > .flaskenv
506d2f02   hitier   Initialize unit t...
10
run tests
43934eae   hitier   New pytest config...
11
PYTHONPATH=. pytest  --cov=app --cov-report=xml:"coverage.xml" --cov-report=term --junitxml "tests-report.xml" 
3c0785d6   hitier   Auto deploy to ap...
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

install
-------

make working dir: 

    mkdir /path/to/working-directory
    git --work-tree=/path/to/working-directory --git-dir=/path/to/the/repo.git checkout -f master

set environment

    python3 -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt
    cp resources/pdc_config.py .
    $(EDITOR) pdc_config.py

git autodeploy
65f2cab9   hitier   Auto-Deploy files
30
--------------
3c0785d6   hitier   Auto deploy to ap...
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

    # make bare repo
    git clone --bare /path/to/the/repo.git
    # put on hook
    cp /path/to/working-directory/resources/post-receive.git-hook

configure apache 
----------------

    cp ./resources/apache2-virtual-host.conf /etc/apache2/sites-available/pdc-web.conf
    $(EDITOR) /etc/apache2/sites-available/pdc-web.conf # set parameters
    $(EDITOR) /etc/hosts # to add your hostname if local install
    apachectl restart

virtual-apage.conf
65f2cab9   hitier   Auto-Deploy files
46
47
48
49
50
pdc_web.py
pdc_web.wsgi
.flaskenv
post-deploy.sh
git-hook
65f2cab9   hitier   Auto-Deploy files
51
git bare repo