Skip to content

Commit

Permalink
deploy to heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
gpivaro committed Dec 6, 2020
1 parent 1da8db6 commit 33cc3df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
table_airports = "airport_data"

# MySQL specific connection string
database_uri = f"mysql+mysqlconnector://{mysql_user_project2}:{mysql_pass_project2}@{mysql_hostname}:{mysql_port}/{database_name}"
database_uri = f"""mysql+mysqlconnector://
{mysql_user_project2}:
{mysql_pass_project2}@
{mysql_hostname}:
{mysql_port}/
{database_name}"""

# Create the engine to connect to the database
engine = create_engine(database_uri)
Expand Down

0 comments on commit 33cc3df

Please sign in to comment.