Skip to main content

Lightning deployment strategy on Azure with Flask

Project description

A Flask server to serve single-page applications deployed using the lightning strategy on Azure Table Storage. Designed to work with Ember-cli-deploy-azure, but should be compatible with any lightning strategy deployment on Azure Table Storage via configuration. Developed with Python 2.7

Installation

It is recommended that you install and run azure_lightning_flask inside of a virtualenv

virtualenv venv
. venv/bin/activate

Via pip

pip install azure_lightning_flask

Manual

Download the application files and in the root directory run

pip install -r requirements.txt
python setup.py install

Application Configuration

Configure the application by setting environment variables. All application configuration variables without a default must be set.

This application serves content from Azure Storage Table requiring an Azure account and a storage table to be setup for some of the required configuration.

Environment Variable Usage Default
AZURE_STORAGE_ACCOUNT The name of the Azure Storage account to be used None (Must be set)
AZURE_STORAGE_KEY The key for the given Azure Storage account None (Must be set)
AZURE_STORAGE_TABLE The name of the table where revisions are stored emberdeploy
AZURE_STORAGE_TABLE_P ARTITION_KEY The partition key to search under manifest
APP_NAME The name of the application being served None (Must be set)
REVISION_PARAMETER The query parameter used to request specific revisions index_key

Running

After it is configured, run the application with

azure_lightning_flask

Flask configuration

Flask configuration values can also be set via environment variables as the environment is merged into the flask configuration via flask-env.

Running tests

python setup.py nosetests

Project details


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
azure_lightning_flask-0.0.1-py2-none-any.whl (10.1 kB) Copy SHA256 hash SHA256 Wheel py2
azure_lightning_flask-0.0.1.tar.gz (6.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page