chore: add run.py entrypoint, update .gitignore and README

Moved the app entrypoint from app.py __main__ block to a dedicated
run.py. Updated .gitignore to exclude editor, superpowers, and OS files.

Made-with: Cursor
This commit is contained in:
cottongin
2026-04-06 18:39:49 -04:00
parent 45e94d68da
commit c7c6cd979b
4 changed files with 14 additions and 6 deletions

9
.gitignore vendored
View File

@@ -6,3 +6,12 @@ __pycache__/
dist/
build/
.pytest_cache/
.superpowers/
docs/superpowers/
.cursor/
.vscode/
chat-summaries/
.DS_Store

View File

@@ -8,7 +8,7 @@ Generates weekly ePub "newspapers" from the [Plymouth Independent](https://www.p
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python app.py
python run.py
```
Open http://localhost:5000 in your browser.

5
app.py
View File

@@ -35,8 +35,3 @@ def create_app(start_scheduler=True):
app.config["SCHEDULER_MANAGER"] = scheduler_mgr
return app
if __name__ == "__main__":
app = create_app()
app.run(host="0.0.0.0", port=5000, debug=False)

4
run.py Normal file
View File

@@ -0,0 +1,4 @@
from app import create_app
app = create_app()
app.run(host="127.0.0.1", port=5005, debug=False)