Skip to content

Commit

Permalink
Fix scripts and application main entry point
Browse files Browse the repository at this point in the history
Fixes error: Could not locate a Flask application.
  • Loading branch information
hluk committed Dec 2, 2022
1 parent 681f2e3 commit 59fa594
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
13 changes: 5 additions & 8 deletions init_db.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/usr/bin/bash
# this is a simple script to aid in the setup of a new db for F18

# init db
python run_cli.py init_db

# insert mock data
python run_cli.py mock_data
#!/bin/bash
set -e
poetry run resultsdb init_alembic
poetry run resultsdb init_db
poetry run resultsdb mock_data
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test = [
]

[tool.poetry.scripts]
resultsdb = "resultsdb.cli:main"
resultsdb = "resultsdb.__main__:main"

[tool.poetry.plugins."resultsdb.messaging.plugins"]
dummy = "resultsdb.messaging:DummyPlugin"
Expand Down
File renamed without changes.
7 changes: 0 additions & 7 deletions run_cli.py

This file was deleted.

0 comments on commit 59fa594

Please sign in to comment.