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:
9
.gitignore
vendored
9
.gitignore
vendored
@@ -6,3 +6,12 @@ __pycache__/
|
||||
dist/
|
||||
build/
|
||||
.pytest_cache/
|
||||
.superpowers/
|
||||
docs/superpowers/
|
||||
|
||||
|
||||
.cursor/
|
||||
.vscode/
|
||||
chat-summaries/
|
||||
|
||||
.DS_Store
|
||||
@@ -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
5
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)
|
||||
|
||||
Reference in New Issue
Block a user