diff options
| author | Priyansh <[email protected]> | 2021-11-17 15:04:59 -0500 |
|---|---|---|
| committer | Priyansh <[email protected]> | 2021-11-17 15:04:59 -0500 |
| commit | e66e74e3121931a8b8ede6ffb5222523c85e623d (patch) | |
| tree | 35cbcd4c4e9450ee5a926773b30081a25adf751c | |
| parent | c6f695c7778a6b117b316457d318062bc8d638d7 (diff) | |
| download | temp_pred_arima-e66e74e3121931a8b8ede6ffb5222523c85e623d.tar.xz temp_pred_arima-e66e74e3121931a8b8ede6ffb5222523c85e623d.zip | |
Re-writing for deploying to Heroku
| -rw-r--r-- | Procfile | 1 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | __pycache__/app.cpython-38.pyc | bin | 0 -> 231 bytes | |||
| -rw-r--r-- | app/__pycache__/main.cpython-38.pyc | bin | 0 -> 1437 bytes | |||
| -rw-r--r-- | app/main.py (renamed from app.py) | 14 | ||||
| -rw-r--r-- | wsgi.py | 4 |
6 files changed, 7 insertions, 14 deletions
diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..fc272ab --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: gunicorn wsgi:app
\ No newline at end of file @@ -124,7 +124,7 @@ pip install -r requirements.txt Run the Project: ``` -python app.py +python wsgi.py ``` ## Project Structure diff --git a/__pycache__/app.cpython-38.pyc b/__pycache__/app.cpython-38.pyc Binary files differnew file mode 100644 index 0000000..0899514 --- /dev/null +++ b/__pycache__/app.cpython-38.pyc diff --git a/app/__pycache__/main.cpython-38.pyc b/app/__pycache__/main.cpython-38.pyc Binary files differnew file mode 100644 index 0000000..478e41c --- /dev/null +++ b/app/__pycache__/main.cpython-38.pyc @@ -9,9 +9,7 @@ app = Flask(__name__) def execute_sql_statement(sql_statement, conn): cur = conn.cursor() cur.execute(sql_statement) - rows = cur.fetchall() - return rows def get_list_of_dict(keys, list_of_tuples): @@ -31,14 +29,4 @@ def index(): cities_list = get_cities_list() keys = ("city", "latitude", "longitude") cities_list = get_list_of_dict(keys, cities_list) - # start_coords = (42.9974521, -78.7907883) - # folium_map = folium.Map(location=start_coords, zoom_start=14) - # _ = folium_map._repr_html_() - # map_div = Markup(folium_map.get_root().html.render()) - # hdr_txt = Markup(folium_map.get_root().header.render()) - # script_txt = Markup(folium_map.get_root().script.render()) - return render_template("index.html", cities_list=cities_list) - - -if __name__ == '__main__': - app.run(debug=True) + return render_template("index.html", cities_list=cities_list)
\ No newline at end of file @@ -0,0 +1,4 @@ +from app.main import app + +if __name__ == '__main__': + app.run(debug=True) |
