Skip to content
This repository was archived by the owner on Jun 15, 2020. It is now read-only.

brettcannon/python-azure-web-app-cookiecutter

Repository files navigation

Build Status

python-azure-web-app-cookiecutter

A Cookiecutter template for a Python site running on Azure Web Apps.

Using this template

  1. Install Cookiecutter
  2. cookiecutter gh:brettcannon/python-azure-web-app-cookiecutter (or cookiecutter https://github.com/brettcannon/python-azure-web-app-cookiecutter.git if you prefer)
  3. Fill in the Cookiecutter itmes (see below as to what each item represents)
  4. Read the README.md included with your new website skeleton on how to deploy your site

Cookiecutter items

  • site_name: the name of the site, e.g. my-site would create a site with an address of my-site.azurewebsites.net
  • python_version: which version of Python to use
  • cpu_arch: 32-bit or 64-bit Python?
  • post_deployment_scripts_directory: the directory where the post-deployment action hooks are to be stored, e.g. the script to execute pip after each site deployment
  • requirements_file_name: the path to the pip requirements file, e.g. requirements.txt
  • static_assets_directory: the name of the directory to place your static assets so IIS can serve the files directly
  • log_file_path: where to store logs relating to the execution of the Python interpreter
  • main_module: The name of the Python module that contains the server code
  • site_type: choose whether you are creating a socket/async- or WSGI-based server
  • socket_port_env_var: for a socket-based server, the environment variable to store the incoming port number in
  • socket_python_arguments: for a socket-based server, the arguments to the Python interpreter to launch your server, e.g. -m app will be equivalent to python -m app
  • wsgi_app_object: for a WSGI-based server, what Python callable contains the WSGI app object, e.g. app.wsgi_app means the wsgi_app callable object in the app module

About

Cookiecutter template for a Python site on Azure Web Apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published