INSTALL.md 1.23 KB

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 run tests PYTHONPATH=. pytest --cov=app --cov-report=xml:"coverage.xml" --cov-report=term --junitxml "tests-report.xml"

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

# 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 pdc_web.py pdc_web.wsgi .flaskenv post-deploy.sh git-hook git bare repo