From c7c6cd979be49020868781cc13a1ffe30a0faf38 Mon Sep 17 00:00:00 2001 From: cottongin Date: Mon, 6 Apr 2026 18:39:49 -0400 Subject: [PATCH] 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 --- .gitignore | 9 +++++++++ README.md | 2 +- app.py | 5 ----- run.py | 4 ++++ 4 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 run.py diff --git a/.gitignore b/.gitignore index ff979f6..9e08579 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,12 @@ __pycache__/ dist/ build/ .pytest_cache/ +.superpowers/ +docs/superpowers/ + + +.cursor/ +.vscode/ +chat-summaries/ + +.DS_Store \ No newline at end of file diff --git a/README.md b/README.md index 97d0e06..7ee4370 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/app.py b/app.py index 9ba05b2..2e7a3f1 100644 --- a/app.py +++ b/app.py @@ -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) diff --git a/run.py b/run.py new file mode 100644 index 0000000..f05fbe1 --- /dev/null +++ b/run.py @@ -0,0 +1,4 @@ +from app import create_app + +app = create_app() +app.run(host="127.0.0.1", port=5005, debug=False)