Deploying and WSGI.

Commit
008b1b496070d9549707d7dd8c28175692eacf10
Author
Marius Peter <marius.peter@tutanota.com>
Author date
Committer
Marius Peter <marius.peter@tutanota.com>
Committer date
Changed files
deploy.sh
index 00000000..2b13543d 000000..100755
@@ -0,0 +1,13 @@
1 Added: #! /bin/bash
2 Added:
3 Added: remote_app='mpeter@192.162.71.223:/home/mpeter/apps/farm-manager'
4 Added: remote_static='mpeter@192.162.71.223:/var/www/apps.mlnp.fr'
5 Added:
6 Added: echo Deploying app:
7 Added: rsync -azvP . $remote_app --chown=mpeter:www-data\
8 Added: --exclude={'.venv','.git','app/__pycache__',}\
9 Added: --exclude 'app/fapg.db*' # Files
10 Added: echo Deploying static files:
11 Added: rsync -azvP ./app/static $remote_static --chown=mpeter:www-data
12 Added: echo App deployed to $remote_app
13 Added: echo Static files to $remote_static.
wsgi.py
index 00000000..49d360ee 000000..100644
@@ -0,0 +1,5 @@
1 Added: # -*- mode: python; -*-
2 Added:
3 Added: from app import create_app
4 Added:
5 Added: app = create_app()