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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for azure_lightning_flask-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06449fd8330523082affe280165f628c5d6529cda8fa16dd0a103af49b2e8437 |
|
MD5 | fcd276124e8728e77374049ad7dee314 |
|
BLAKE2b-256 | e2e3f18a9c5695de69c3adf230f6a965b04a4cd6d1c020008b4930f53e9ff6c7 |
Hashes for azure_lightning_flask-0.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1421b50eb785140c3d4cef1d5c69b4a2c359f9e67893ea5049ea1b0723d4f50 |
|
MD5 | 1b58c05b0b532fcbeb7a70399fde2425 |
|
BLAKE2b-256 | 3f29080136c3031053856fbf972fc4398dadf3013ca25492e5c5781eeec08dbd |