A blog system based on plain-files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.5 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. # Python Flask Blog
  2. This is a simple blog based on Pythons Flask framework.
  3. ## Deployment
  4. ### PIP/Python
  5. - `pip3install -r requirements.txt` - install depenencies
  6. - run `python app.py`
  7. - blog is available on port 5000
  8. ### Docker
  9. #### Volumes
  10. Set the following volumes with the -v tag.
  11. | Volume-Name | Container mount | Description |
  12. |-------------|----------------------|-----------------------------------------------------------------------|
  13. | css | /blog/src/static/css | Directory for css files |
  14. | html | /blog/src/templates | Directory for templates and html documents (contains entry directory) |
  15. #### Ports
  16. Set the following ports with the -p tag.
  17. | Container-Port | Recommended outside port | Protocol | Description |
  18. |----------------|--------------------------|----------|-------------|
  19. | 5000 | 80 | TCP | HTTP port |
  20. #### Example run-command
  21. `docker run --name blog --restart unless-stopped -v css:/blog/src/static/css -v html:/blog/src/templates -p 80:5000 -d tiynger/flaskblog`
  22. ## Usage
  23. ### Create entries
  24. Blog entries are managed by plain html files in the `templates/entry/` directory.
  25. The first line of each document is reserved as the title of the document.
  26. You have to specify the filetype by extension.
  27. Currently supported filetypes are:
  28. - HTML (.html)
  29. - Markdown (.md)
  30. ## To-Do
  31. - CSS upgrade