Skip to content

Commit

Permalink
Add glitch.json
Browse files Browse the repository at this point in the history
  • Loading branch information
zhammer committed Feb 9, 2020
1 parent b1f4df9 commit 5914ed0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions glitch.json
@@ -0,0 +1,4 @@
{
"install": "pip3 install -r requirements.txt",
"start": "python scripts/createdb.py && uvicorn --host 0.0.0.0 --port 3000 --reload scribly.delivery.server:app"
}
2 changes: 1 addition & 1 deletion scripts/createdb.py
Expand Up @@ -8,7 +8,7 @@ def main():
with open("./migrations/createdb.sql") as f:
sql = f.read()

db_path = Path(os.environ["DATABASE_URL"])
db_path = Path(os.environ.get("DATABASE_URL", ".data/scribly.db"))
os.makedirs(db_path.parent, exist_ok=True)

if "--reset" in sys.argv[1:]:
Expand Down

0 comments on commit 5914ed0

Please sign in to comment.