Skip to main content

Simplest way to host your flask web app in production!

Project description

AirFlask

Simplest way to host flask web apps in production - Using nginx and gunicorn.

Installation

pip install airflask

Features

  • 🚀 One line production deployment for flask apps.
  • 🔧 Installs all dependencies, and manages everything.
  • ⚡ Powered by a nginx + gunicorn server.
  • 🤖 Auto-tunes the best hosting config based on your server specs.

Usage

Deploying: A single line that manages everything and your app goes live with no hassle!

sudo airflask deploy <path>
  • where <path> is the full path to the parent folder containing your app.py

  • Be sure to rename your main flask file to app.py

  • App will be hosted on localhost, your private and public ip address (if static and unshared).

  • for eg. sudo airflask deploy /home/naitik/flaskecomapp/

Deploying with Domain and SSL (Free SSL via Let's Encrypt)

sudo airflask deploy <path> --domain <example.com>
sudo airflask deploy <path> --domain <example.com> --ssl --noredirect

App Type and Power

sudo airflask deploy <path> --apptype <app_type> 
sudo airflask deploy <path> --power <high/low/med>

More instructions and details at https://github.com/naitikmundra/airflask

Stop or Restart

sudo airflask restart <path>
sudo airflask stop <path>

Restart your app after you make changes.

Contact

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

airflask-0.9.8.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airflask-0.9.8-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file airflask-0.9.8.tar.gz.

File metadata

  • Download URL: airflask-0.9.8.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for airflask-0.9.8.tar.gz
Algorithm Hash digest
SHA256 f122dfc8b1eefb03a8b665d2d60c56831830e022d86b5c9166e15c2b0533247f
MD5 a04031ac03e314b3e1536885802e5951
BLAKE2b-256 64202153b4dd74d11980b565ba25977aa8b9a11249c3790714057113a2b8efdd

See more details on using hashes here.

File details

Details for the file airflask-0.9.8-py3-none-any.whl.

File metadata

  • Download URL: airflask-0.9.8-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for airflask-0.9.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5519e4d4b2acfcb17f79377e9e0a31cf84fcba1fec6d1d421699920d83fafa33
MD5 82f185c15d91f62dd2f2889fed9a75da
BLAKE2b-256 f9565aedd5fdac2c0d3eaaa63e3236047ef4ccac69c6d9f1c898decebd5a8fa7

See more details on using hashes here.

Supported by

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