Skip to main content

OArepo module for tracking and updating references in Invenio records

Project description

OArepo whitenoise

This library serves static resources and index.html at runtime using the whitenoise package. This greatly simplifies the deployment as only one image needs to be deployed.

Installation

pip install oarepo-micro-api oarepo-whitenoise

Configuration

This library expects the static files in /whitenoise folder. If they are located elsewhere, set environment variable WHITENOISE_ROOT to the correct location.

Usage

In your wsgi configuration, specify:

[uwsgi]
module = oarepo_whitenoise.wsgi:application
...

as your wsgi entry point.

.. Copyright (C) 2021 Mirek Šimek, VŠCHT Praha.

oarepo-whitenoise is free software; you can redistribute it and/or
modify it under the terms of the MIT License; see LICENSE file for more
details.

Changes

Version 0.1.0 (released TBD)

  • Initial public release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oarepo-whitenoise-2.0.4.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

oarepo_whitenoise-2.0.4-py2.py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page