/www

Code for https://florimond.dev

Primary LanguagePythonMIT LicenseMIT

www

Build Status Coverage

Code for https://florimond.dev.

Prerequisites

Runtime:

  • Python 3.9+

Development only:

  • Node.js v12
  • Yarn
  • Heroku CLI - (optional)

Install

scripts/install [--update]

Usage

  • Run the website locally:
scripts/serve [UVICORN_OPTIONS]
  • Run the website as it would run in production:
. venv/bin/activate
heroku local
  • Run the test suite:
scripts/test [PYTEST_OPTIONS]
  • Build assets:
scripts/build

Deployment

This website is deployed via Dokku.

  1. (First time only) Setup SSH keys on the remote host. See Setup SSH key and User Management.
  2. Run the deploy script:
scripts/deploy

Settings

Environment variable Description Default
DEBUG Run in debug mode. Enables in-browser tracebacks and content hot reload. False
TESTING Run against mocked resources. False
EXTRA_CONTENT_DIRS Include content from extra directories. None

License

  • Code is licensed under MIT.
  • Writings are my own.