This website requires JavaScript.
Explore
Help
Register
Sign in
PrivateCoffee
/
privatecoffee-website
Watch
4
Star
0
Fork
You've already forked privatecoffee-website
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
9030c527ef
privatecoffee-website
/
.gitignore
4 lines
31 B
Text
Raw
Normal View
History
Unescape
Escape
Implement dynamic service rendering with Flask Refactored the website to serve dynamic content using Flask, replacing static HTML pages. This allows for the centralized management of service data through a JSON file. Optimizations include: - Added a .gitignore file to exclude Python and Flask-specific temporary files. - Migrated static assets into an organized directory structure to facilitate Flask's static file serving. - Removed redundant HTML files and created Flask template versions with dynamic content rendering. - Introduced Caddy server configuration for the new Flask architecture, including headers for security and CORS policy, and reverse proxy settings for route handling. With these changes, website maintenance and updates are simplified, allowing for service information to be updated in a single location (`services.json`), which then propagates to the user-facing pages automatically.
2023-12-31 12:59:13 +00:00
venv/
*.pyc
feat: convert Flask app to static site generator Refactored the Flask application to generate a static site instead of running as a dynamic web app. Added a CI workflow to build and deploy the static site on pushes to the 'static' branch. - Replaced Flask route handling with a function that generates HTML files using Jinja2 templates. - Modified the argparse logic to trigger the static site generation. - Updated the .gitignore file to exclude the build directory. - Created a Forgejo Actions workflow to automate the build and deploy process. This change improves performance and reduces server overhead by serving pre-rendered static content.
2024-07-01 07:56:04 +00:00
__pycache__/
build/
Reference in a new issue
Copy permalink