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