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

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.0.tar.gz (6.2 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.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: airflask-0.9.0.tar.gz
  • Upload date:
  • Size: 6.2 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.0.tar.gz
Algorithm Hash digest
SHA256 dd54d0574fb0dee3b4af56fffd90f1778917b623528fd1a08ef0e7a3a6de6ae1
MD5 427a17120446bc1371f42106dfbac7e7
BLAKE2b-256 39eb3bf2de17d1687a2c63f20dfac0d5f3741e3e29d67d994f261f52213d041d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airflask-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c97122bf72ca29d97797b4afeb8ae402b5af40a767299cdee8850c8b93f4644e
MD5 50614a1aa91658387ccc0cde542c21c5
BLAKE2b-256 074b53fc5357fda255f254d68a43e89e255d8e9ba6e28f711af42e00adeec980

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