Skip to content

Commit

Permalink
fixin bug
Browse files Browse the repository at this point in the history
  • Loading branch information
upkarlidder committed Dec 11, 2020
2 parents 3f691d4 + 3c39a83 commit 5f1dd27
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# IBM IoT
# this is how to connect to the database.
MARIADB_HOST=
MARIADB_PORT=
MARIADB_USERNAME=
Expand Down
3 changes: 3 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
@app.route('/')
def index():
return render_template("index.html")
# this is me typing a comment in the application, it's weird that i have to do this.
# this is me adding another comment trying to figure something out.


@app.route("/healthz")
def healthz():
resp = Response("ok")
resp.headers['Custom-Header'] = 'Awesome'
# this is awesome tying things
return resp

if __name__ == "__main__":
Expand Down
3 changes: 2 additions & 1 deletion manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ applications:
memory: 256M
instances: 1
port: 5000


# this is me adding another comment.
4 changes: 2 additions & 2 deletions static/css/style.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
body,html {

margin: 0;

}

.image {
background-image: url("../images/IBM_Microbites_MockSite_120820.png")
/*background-image: url("../images/IBM_Error500_MockSite_120820.jpg");*/
Expand Down
4 changes: 4 additions & 0 deletions util/MicroBites.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@
SQLALCHEMY_DATABASE_URI = ("mysql+pymysql://"+ os.getenv('MARIADB_USERNAME')
+":"+ os.getenv("MARIADB_PASSWORD")
+"@"+ os.getenv("MARIADB_HOST")
<<<<<<< HEAD:util/MicroBites.py
+":" + str(os.getenv("MARIADB_PORT"))
=======
+":3223"
>>>>>>> 3c39a836ed0520fb6a0385852f6f9cfacc316174:util/MicroBytes.py
+"/prometeo")

DB_ENGINE = sqlalchemy.MetaData(SQLALCHEMY_DATABASE_URI).bind
Expand Down

0 comments on commit 5f1dd27

Please sign in to comment.