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.
  • ⚡ Power of a nginx + gunicorn server.

Usage

Deploying: Just run this single line auto manages/installs all dependencies and your app will be live!

sudo airflask deploy <path>

where path is full path to parent folder containing our app.py

BE sure to rename the main flask file as app.py

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

Deploying with domain and ssl: Free ssl cert by Lets Encrypt

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

Note

  • --ssl will not work without a domain specified.
  • by default if --ssl is specified all http requests will be redirected to https unless --noredirect specified.
  • Make sure your domain points to your ip address for ssl verifiation and functionality.

Stop or Restart

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

Restart whenever you make any changes

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.4.0.tar.gz (4.9 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.4.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for airflask-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ce4c69e5ce113783bb83384cad46e4403b8646d77ca5df1c80b44e518a5b3c42
MD5 2271a1cc21d92a87995d0762f504b7ad
BLAKE2b-256 f8bf5d36b4725e5e5e458b9c2516fa40275fd2167ce63a3ffa60ab981a050071

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airflask-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cccbb1c2953fefac28e3e0e8a6c8f4a78374b70fa20df70319a0acecb2cbfdb6
MD5 a08f0c3fe050265815ffe7151d353849
BLAKE2b-256 4d98a7064bf8511b6238596c4fd29c49d051bf91659109ccde3817e766bb418b

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