Commit Graph

11 Commits

Author SHA1 Message Date
Sage Vaillancourt 13781ba7d9 Move https responsibilities to caddy 2022-09-27 06:17:27 +00:00
Sage Vaillancourt d358c55017 Add basic fallbacks for missing db/email creds.
Fallbacks may eventually warrant their own file.
Use f-strings to format password-reset emails.
Automatically delete email-reset rows after 15 minutes.
 - Cute, but a proper vacuum would likely be more robust.
Remove deprecated FLASK_ENV use.
Use exceptions in generate_pdf()
2022-09-26 17:00:21 -04:00
Sage Vaillancourt 2807c72740 Also host on :80 in prod
Somewhat forcefully puts users on https.
2022-09-25 01:12:32 +00:00
Sage Vaillancourt a9c256e74f Rename latty.py to pdf_builder.py
Other small cleanup.
2022-09-23 13:37:37 -04:00
Sage Vaillancourt ff659db77f Some project re-org, and add pytest.
Rename flaskr/ to undercover/
Rename writing_templates/ to letter_templates/
Put db testing code into __main__ check
Break css optimization into its own file and add simple testing.
Rename writing.py to routes.py.
Move cached index directly into routes.py
2022-09-23 11:35:56 -04:00
Sage Vaillancourt 17ab611e9c Rename .html files to .jinja2.
Add <title> to main page.
Small style tweaks.
2022-09-22 16:11:26 -04:00
Sage Vaillancourt 0c07b5b0f2 Several fixes and improvements.
"Better" CSS minifying.
Adjust psycopg imports and some usages.
Fix viewport scaling for mobile.
Switch gunicorn to default https port when running in prod.
Correct /dbtest route and add simple /update skeleton
2022-09-22 15:05:17 +00:00
Sage Vaillancourt 161b20f39d Less annoying port number for prod 2021-07-31 18:38:01 -04:00
Sage Vaillancourt d1af841b41 Specify pip3 in start 2021-07-28 23:41:07 -04:00
Sage Vaillancourt a5f451d1e6 Add init file for setup. Move default venv to .venv 2021-07-29 03:25:29 +00:00
Sage Vaillancourt e71c9814a1 Add start file to automatically kick off server 2021-07-28 22:52:37 -04:00