delightfulrachel commited on
Commit
b73721f
Β·
verified Β·
1 Parent(s): 166a022

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -17
app.py CHANGED
@@ -683,27 +683,32 @@ def main():
683
  """
684
  )
685
 
686
- #app.launch()
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
- port = int(os.environ.get("PORT", 8080))
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
 
 
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