From c6bc4ed33d7d75902caec7e1ed1595557f4f65bf Mon Sep 17 00:00:00 2001 From: Ignace Date: Thu, 1 Jan 2026 21:33:12 +0100 Subject: [PATCH] making it ready for prd --- README.md | 8 +++++++- initialize_data.py | 2 +- app.py => lapp.py | 0 lapp.wsgi | 6 ++++++ 4 files changed, 14 insertions(+), 2 deletions(-) rename app.py => lapp.py (100%) create mode 100644 lapp.wsgi diff --git a/README.md b/README.md index ace0547..73caca6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # lapp -list app \ No newline at end of file +list app + +install +1. clone repo +2. create subfolder "instance" to store database file +3. for an initial instance: run python3 initialze_data.py +4. add the below config to your apache2 enabled site diff --git a/initialize_data.py b/initialize_data.py index eaab064..e64a954 100644 --- a/initialize_data.py +++ b/initialize_data.py @@ -1,4 +1,4 @@ -from app import create_app +from lapp import create_app import sqlalchemy as sa from models import db, User, ListOfItems, Shared, Item diff --git a/app.py b/lapp.py similarity index 100% rename from app.py rename to lapp.py diff --git a/lapp.wsgi b/lapp.wsgi new file mode 100644 index 0000000..86a7d24 --- /dev/null +++ b/lapp.wsgi @@ -0,0 +1,6 @@ +#!/usr/bin/python3 + +import sys +sys.path.insert(0, '/usr/share/projects/wsgi_apps/lapp') + +from lapp import app as application \ No newline at end of file