Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Medley

A collection of small, single-purpose web applications that share services but are otherwise independent.

Medley is build on the CherryPy framework.

Development Setup

Medley targets the current version of Python 3 in Debian stable, currently 3.7. Setup is driven by make.

# Create a Python virtual environment
make venv
source venv/bin/activate

# Install third-party libraries
make setup

# Start the server on localhost:8085
make serve

Configuration

The server's default configuration can be adjusted using the following environment variables.

MEDLEY_access_log: The file path to use for site-wide request logging. Default: Not set

MEDLEY_autoreload: Whether the server should watch for changes to application files and restart itself. Only useful during development. Default: False

MEDLEY_daemonize: Whether the server should run as a daemon. Unnecessary when the server is being manged by systemd and probably not useful during development. Default: False

MEDLEY_database_dir: The directory path to use for SQLite databases. Default: ./db

MEDLEY_error_log: The file path to use for site-wide error logging. Probably not needed when the server is being managed by systemd (view errors via journalctl instead). Default: Not set

MEDLEY_etags: Whether to use ETag HTTP headers for caching. Default: True

MEDLEY_gzip: Whether to enable gzip compression. Default: True

MEDLEY_log_screen: Whether log messages should be written to the server's stdout. Default: True

MEDLEY_log_screen_access: Whether access logs should be written to the stdout of the server process. Only applicable if MEDLEY_log_screen is enabled. Default: False

MEDLEY_memorize_hashes: Whether the server should keep static asset file hashes in memory for use with HTTP cache control. Useful in production but not in development. Default: True

MEDLEY_notify_systemd: Whether the server should let systemd know it has started and is ready to receive requests. Default: False

MEDLEY_prefetch: Whether applications are allowed to make HTTP requests on a recurring basis so that they can be served more quickly from cache when needed. Default: True

MEDLEY_server_host: The IP the server should listen on. Default: 127.0.0.1

MEDLEY_server_port: The port the server should listen on. Default: 8085

MEDLEY_tracebacks: Whether CherryPy should display Python error trackebacks in the browser. Default: False

Acknowledgements

This project gratefully makes use of the following projects:

About

No description or website provided.

Topics

Resources

Releases

No releases published

Packages

No packages published