Skip to content

Commit

Permalink
Add code to run the app
Browse files Browse the repository at this point in the history
  • Loading branch information
shriyakalakata committed Feb 23, 2024
1 parent 2ad4976 commit 195d9f2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@
client.admin.command('ping')
print("Connected to MongoDB!")
except Exception as e:
print("MongoDB connection error:", e)
print("MongoDB connection error:", e)


# run the app
if __name__ == "__main__":
FLASK_PORT = os.getenv("FLASK_PORT", "5000")
app.run(port=FLASK_PORT)

0 comments on commit 195d9f2

Please sign in to comment.