deploy and wsgi.

Commit
400a27ad965d49ff6a1df706010b212a78259d32
Author
Marius Peter <marius.peter@tutanota.com>
Author date
Committer
Marius Peter <marius.peter@tutanota.com>
Committer date
Changed files
deploy.sh
index 218da177..5cad7a4a 100755..100755
@@ -1,7 +1,13 @@
1 1 #! /bin/bash
2 2
3 Removed: remote='root@192.162.71.223:/var/www/apps.mlnp.fr/mdl'
3 Added: remote_app='mpeter@192.162.71.223:/home/mpeter/apps/mdl'
4 Added: remote_static='mpeter@192.162.71.223:/var/www/apps.mlnp.fr'
4 5
5 Removed: echo Deploying now.
6 Removed: rsync -razvP . $remote
7 Removed: echo successfully deployed.
6 Added: echo Deploying app:
7 Added: rsync -azvP . $remote_app --chown=mpeter:www-data\
8 Added: --exclude={'.venv','.git','downloads','app/__pycache__',}\
9 Added: --exclude 'app/mdl.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()