https://github.com/naitikmundra/airflask
Simplest way to host flask web apps in production.
https://github.com/naitikmundra/airflask
devops devops-tools flask python
Last synced: about 1 month ago
JSON representation
Simplest way to host flask web apps in production.
- Host: GitHub
- URL: https://github.com/naitikmundra/airflask
- Owner: naitikmundra
- License: mit
- Created: 2025-03-28T04:30:22.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-11-10T14:09:25.000Z (5 months ago)
- Last Synced: 2025-12-22T01:53:00.203Z (4 months ago)
- Topics: devops, devops-tools, flask, python
- Language: Python
- Homepage:
- Size: 152 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```
- >where `` 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 --domain
```
```
sudo airflask deploy --domain --ssl --noredirect
```
## App Type and Power
```
sudo airflask deploy --apptype
```
```
sudo airflask deploy --power
```
More instructions and details at https://github.com/naitikmundra/airflask](https://github.com/naitikmundra/AirFlask/tree/main/docs
## Stop or Restart
```
sudo airflask restart
sudo airflask stop
```
Restart your app after you make changes.
## Get Apps (Get all apps and manage them with single command)
```
sudo airflask get
sudo airflask get --delete #can be used to delete/rmv a hosted web app
```
## Note
New developers often struggle with configuring Gunicorn, Nginx, and SSL.
AirFlask automates this process with simple commands — even if you're not familiar with Linux servers.
> AirFlask uses `sudo` internally to automate system-level tasks.
> In future versions, this may be replaced with more secure alternatives like privilege-checks or Docker scripts.
## Contact
- Feel free to email me at naitikmundra18@gmail.com for any queries or suggestions.
- Or DM me on instagram: https://instagram.com/naitikmundra