Metadata-Version: 2.4
Name: airflask
Version: 0.8.1
Summary: Simplest way to host your flask web app in production!
Author: Naitik Mundra
Author-email: naitikmundra18@gmail.com
License: MIT
Project-URL: GitHub Repository, https://github.com/naitikmundra/AirFlask
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: flask
Requires-Dist: click
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-dist
Dynamic: summary

# AirFlask

<p align="center">
  <img src="https://github.com/user-attachments/assets/73f561cb-74aa-428e-be29-08694574dc2e" width="250" height="250">
</p>

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

## Contact
- Feel free to email me at  naitikmundra18@gmail.com for any queries or suggestions.
- Or dm me on instagram: https://instagram.com/naitikmundra





