Skip to content

adamlamers/dokku-flask-blog

Repository files navigation

Flask Dokku Blog

You can probably view a running example of this repository here

This is a blog engine created with Flask and Bulma. It uses SimpleMDE as a backend for editing, and highlightjs for source code highlighting in blog posts.

This repo is designed to work and be deployed with the Dokku docker tool.

Don't forget to change SECRET_KEY in config.py if you deploy this on your own server.

Features

  • GitHub flavored markdown in posts.
  • Highlight.js on code blocks out of the box.
  • Post tagging.
  • idk

Local Development

Set environment variable DATABASE_URL to point to a valid postgresql instance.

export DATABASE_URL=postgresql://localhost/blog

Then run:

python app.py

to start a development server.

Installation with Dokku

  1. Set up dokku on a host
  2. Create an app on that host
  3. Create a postgres service with dokku and link it to the app you created
  4. Push this app to your dokku host
  5. Visit http://yourapp.com/init
  6. Login with admin/password and change the password or create a new admin user and delete the default admin user.

Installation otherwise

You can also just run this app with gunicorn and point a webserver at it, should work just as well.

About

Blog built with python and postgres, using Flask and Bulma.io.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published