Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy panoptes for production #172

Closed
fgvieira opened this issue Nov 20, 2023 · 2 comments · Fixed by #180
Closed

Deploy panoptes for production #172

fgvieira opened this issue Nov 20, 2023 · 2 comments · Fixed by #180

Comments

@fgvieira
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I need a way to monitor running snakemake pipelines in a production environment, and decided to try panoptes.
From the singularity image, it was super easy to get it to work!

However, a warning message comes up that:

WARNING: This is a development server. Do not use it in production deployment. Use a production WSGI server instead.

I looked a bit around but could only find a generic flask tutorial, but it is not clear how that applies to panoptes (e.g. how do you define the SECRET_KEY?).

Is there any documentation on how to deploy panoptes for production.
How would you recommend to do it?

@fgvieira
Copy link
Contributor Author

fgvieira commented Nov 23, 2023

Not sure if it the best way to do it, but I managed to do it with waitress.

  1. Follow instruction in https://github.com/panoptes-organization/panoptes#install-from-conda-and-run-server
  2. Also install waitress in the environment
  3. Instead of run the server with panoptes, run waitress-serve --port 5000 panoptes.app:app

@fgypas I'll leave it open, since it would still be nice to have an "official" way to do it. 😄

@fgypas
Copy link
Member

fgypas commented Dec 25, 2023

Thanks a lot @fgvieira
That's a good solution to add WSGI server and feel free to open a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants