From 432c20c917e0e27a188b587ffac038faa816c78a Mon Sep 17 00:00:00 2001 From: lucas Date: Fri, 29 Apr 2022 20:05:22 -0700 Subject: [PATCH] heroku commit --- Procfile | 1 + main.py | 2 +- recipes/recipes.json | 39 +++++++++++++++++++++++++++++++++++++++ requirements.txt | 7 +++++++ 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 Procfile create mode 100644 requirements.txt diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..b3868ba --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: gunicorn app:main \ No newline at end of file diff --git a/main.py b/main.py index 004b1e5..982d071 100644 --- a/main.py +++ b/main.py @@ -58,4 +58,4 @@ def add_recipe(): if __name__ == "__main__": book = RecipeBook() - app.run(debug=False) + app.run(debug=True) diff --git a/recipes/recipes.json b/recipes/recipes.json index cfb3eb8..1385a43 100644 --- a/recipes/recipes.json +++ b/recipes/recipes.json @@ -22,5 +22,44 @@ "Yeast": 0, "Starter": 125 } + }, + "0": { + "quantity": "4", + "name": "Whole Wheat", + "ingredients": { + "AP Flour": 500, + "WW Flour": 500, + "Rye Flour": 0, + "Water": 800, + "Salt": 23, + "Yeast": 15, + "Starter": 0 + } + }, + "1": { + "quantity": "2", + "name": "Whole Wheat * 0.5", + "ingredients": { + "AP Flour": 250, + "WW Flour": 250, + "Rye Flour": 0, + "Water": 400, + "Salt": 12, + "Yeast": 8, + "Starter": 0 + } + }, + "2": { + "quantity": "1", + "name": "Sandwich", + "ingredients": { + "AP Flour": 400, + "WW Flour": 0, + "Rye Flour": 100, + "Water": 300, + "Salt": 15, + "Yeast": 0, + "Starter": 12 + } } } \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3017968 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +click==8.1.3 +Flask==2.1.2 +gunicorn==20.1.0 +itsdangerous==2.1.2 +Jinja2==3.1.2 +MarkupSafe==2.1.1 +Werkzeug==2.1.2