Update app.py
Browse files
app.py
CHANGED
|
@@ -683,27 +683,32 @@ def main():
|
|
| 683 |
"""
|
| 684 |
)
|
| 685 |
|
| 686 |
-
|
| 687 |
-
return app
|
| 688 |
|
| 689 |
|
| 690 |
|
| 691 |
-
print("β
Initializing Salesforce Migration Assistant")
|
| 692 |
-
app = main()
|
| 693 |
-
print("β
Application instance created")
|
| 694 |
|
| 695 |
if __name__ == "__main__":
|
| 696 |
-
|
| 697 |
-
|
| 698 |
-
|
| 699 |
-
|
| 700 |
-
|
| 701 |
-
|
| 702 |
-
|
| 703 |
-
|
| 704 |
-
|
| 705 |
-
|
| 706 |
-
|
| 707 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 708 |
|
| 709 |
|
|
|
|
| 683 |
"""
|
| 684 |
)
|
| 685 |
|
| 686 |
+
app.launch()
|
| 687 |
+
#return app
|
| 688 |
|
| 689 |
|
| 690 |
|
|
|
|
|
|
|
|
|
|
| 691 |
|
| 692 |
if __name__ == "__main__":
|
| 693 |
+
main()
|
| 694 |
+
|
| 695 |
+
|
| 696 |
+
# print("β
Initializing Salesforce Migration Assistant")
|
| 697 |
+
# app = main()
|
| 698 |
+
# print("β
Application instance created")
|
| 699 |
+
|
| 700 |
+
# if __name__ == "__main__":
|
| 701 |
+
# port = int(os.environ.get("PORT", 8080))
|
| 702 |
+
# print(f"π Starting server on port {port}")
|
| 703 |
+
# try:
|
| 704 |
+
# app.launch(
|
| 705 |
+
# server_name="0.0.0.0",
|
| 706 |
+
# server_port=port,
|
| 707 |
+
# share=False
|
| 708 |
+
# )
|
| 709 |
+
# except Exception as e:
|
| 710 |
+
# print(f"π₯ Server failed to start: {str(e)}")
|
| 711 |
+
# raise
|
| 712 |
+
# print("β
Server started successfully")
|
| 713 |
|
| 714 |
|