flask-soc-site/notes.md

28 lines
604 B
Markdown
Raw Permalink Normal View History

2025-07-09 22:02:10 +02:00
# How to package
2025-07-09 22:19:49 +02:00
- Have a `pyproject.toml` file
- Have an internet connection (flit needs it)
2025-07-09 22:02:10 +02:00
```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
2025-07-09 22:19:16 +02:00
ssh [user]@[site].nl
2025-07-09 22:02:10 +02:00
sudo su
2025-07-09 22:19:16 +02:00
sudo -i -u [account running app]
cd [path to flask app]
2025-07-09 22:02:10 +02:00
. ./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
```