mirror of
https://github.com/jessebot/tiny_personal_website.git
synced 2025-10-01 01:48:43 +00:00
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:
parent
99fbe3bd7c
commit
17ebf7881d
4 changed files with 17 additions and 15 deletions
16
README.md
16
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
|
||||
|
|
12
adapter.wsgi
12
adapter.wsgi
|
@ -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()
|
|
@ -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)
|
|
@ -1,2 +1,2 @@
|
|||
export FLASK_APP=web_routes
|
||||
export FLASK_APP=app
|
||||
flask run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue