remove adapter for apache since we don't use that anymore and update the flask start to be accurate, change routes to app

This commit is contained in:
JesseBot 2022-10-05 14:38:57 +02:00
parent 99fbe3bd7c
commit 17ebf7881d
4 changed files with 17 additions and 15 deletions

View file

@ -7,6 +7,22 @@ This is a Python based CMS for a small personal website. The back end uses
the bottle web framework and the front end is bootstrap. YAML is used for site
specific configurations. Tested with Python 3.10.7 only.
I originally wrote this 7 or 8 years ago, and recently absolutely borked my
newer website, resulting in me quickly resurrecting this thing in about a
day. It's... fine. It's not terrrible.
Here's the guide I used for digital ocean:
https://docs.digitalocean.com/tutorials/app-deploy-flask-app/
You want the following command plugged into where-ever this runs:
```bash
gunicorn --worker-tmp-dir /dev/shm app:app
```
### Coming Soon
better docker file
Under the Hood
--------------
* Bootstrap v5

View file

@ -1,12 +0,0 @@
#!/usr/bin/python
import os, sys
# Change working directory so relative paths (and template lookup) work again
os.chdir(os.path.dirname(__file__))
sys.path.append(os.path.dirname(__file__))
import bottle
import web_routes
# ... build or import your bottle application here ...
# Do NOT use bottle.run() with mod_wsgi
application = bottle.default_app()

View file

@ -5,8 +5,6 @@ from flask import render_template
import logging as log
import sys
import yaml
# not ready yet
# import personal_app.routes
# set logging
log.basicConfig(stream=sys.stderr, level=log.INFO)

View file

@ -1,2 +1,2 @@
export FLASK_APP=web_routes
export FLASK_APP=app
flask run