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


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


Download the application files and in the root directory run

pip install -r requirements.txt
python 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


After it is configured, run the application with


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 nosetests

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

azure_lightning_flask-0.0.1.tar.gz (6.2 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page