Skip to content

Commit

Permalink
fixing port value for render.com
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPdeS committed Dec 15, 2024
1 parent 52b1ce3 commit d8d10cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PyMieSim/_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,20 @@ def setup_callbacks(self):
"""
self.measure_section.update_callbacks(self.create_plot, self.save_func)

def run(self, host: str = "0.0.0.0", port: str = "8050", open_browser: bool = False):
def run(self, host: str = "0.0.0.0", port: str = "8050", open_browser: bool = False, debug: bool = False):
"""
Run the Dash app.
This method starts the Dash server and opens the application in the default web browser.
"""
if open_browser:
webbrowser.open(f"http://{host}:{port}/", new=2)
self.app.run_server(debug=True)
self.app.run_server(debug=debug)

else:
self.app.run_server(debug=True, host=host, port=port)
self.app.run_server(debug=debug, host=host, port=port)


if __name__ == '__main__':
_gui = OpticalSetupGUI()
_gui.run()
_gui.run(host='0.0.0.0', port='8050', open_browser=False, debug=False)

0 comments on commit d8d10cb

Please sign in to comment.