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
--sslwill not work without a domain specified.- by default if
--sslis specified all http requests will be redirected to https unless--noredirectspecified. - 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
Contact
- Feel free to email me at naitikmundra18@gmail.com for any queries or suggestions.
- Or dm me on instagram: https://instagram.com/naitikmundra
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file airflask-0.6.0.tar.gz.
File metadata
- Download URL: airflask-0.6.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99e7664b288c2450a413deddbc4db72934774d9d94358a568b46337757d1a0c7
|
|
| MD5 |
57adfc1e9900e90d23348fb12fc7e219
|
|
| BLAKE2b-256 |
3736afb26e766a4bd4f8883577f185f70123401c0f257c3bbe75ea777e934e69
|
File details
Details for the file airflask-0.6.0-py3-none-any.whl.
File metadata
- Download URL: airflask-0.6.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aad85323308c9706c87fddbafd1c5ed105dd2ccfedbbfa1d607102c413b9d428
|
|
| MD5 |
c53f6efa3556b8bc1c3d5246082c88a3
|
|
| BLAKE2b-256 |
bf71b421b7c8647451e789cf43eeaef44b0b4ba8727a80c2833d75723da4bfbb
|