diff --git a/README.md b/README.md index 2669b95..271d01a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/adapter.wsgi b/adapter.wsgi deleted file mode 100755 index 7c2bd2c..0000000 --- a/adapter.wsgi +++ /dev/null @@ -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() diff --git a/routes.py b/app.py similarity index 94% rename from routes.py rename to app.py index 1a67f61..4a6ee16 100755 --- a/routes.py +++ b/app.py @@ -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) diff --git a/flask_start.sh b/flask_start.sh index 623d74c..18fed35 100755 --- a/flask_start.sh +++ b/flask_start.sh @@ -1,2 +1,2 @@ -export FLASK_APP=web_routes +export FLASK_APP=app flask run