delightfulrachel commited on
Commit
7cea8a7
Β·
verified Β·
1 Parent(s): f4c3fca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -7
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
- app.launch(
696
- server_name="0.0.0.0",
697
- server_port=port,
698
- share=False,
699
- enable_queue=False, # Disable queuing system
700
- show_error=False # Reduce startup overhead
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