Compare commits

..

2 Commits

Author SHA1 Message Date
Joost Agterhoek
872e165131 Merge branch 'main' of code.joostagterhoek.nl:joost/flask-soc-site 2025-07-09 22:16:13 +02:00
Joost Agterhoek
7dd36f8156 notes on making a wheel and running it 2025-07-09 22:02:10 +02:00

27
notes.md Normal file
View File

@ -0,0 +1,27 @@
# How to package
Have a `pyproject.toml` file
Have an internet connection (flit needs it)
```python
python3 -m build --wheel
```
# How to run (with factory building)
```python
gunicorn --bind 0.0.0.0:8000 'flask_soc_site:create_app()'
```
Documentation: https://docs.gunicorn.org/en/stable/run.html
# How to run currently without systemd service
```bash
ssh joost@joostagterhoek.nl
sudo su
sudo -i -u my_webapp
cd /var/www/my_webapp/www
. ./env/bin/activate
gunicorn --bind 0.0.0.0:8000 'flask_soc_site:create_app()' --error-logfile gunicorn.error.log --log-level error --capture-output
```