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

Run liveserver fixture on another server #153

Open
janash opened this issue Apr 13, 2022 · 1 comment
Open

Run liveserver fixture on another server #153

janash opened this issue Apr 13, 2022 · 1 comment

Comments

@janash
Copy link

janash commented Apr 13, 2022

I use the liveserver fixture in the testing suite for my app. I have recently switched my app to run using waitress in the production environment. To run using waitress, I do something similar to:

from waitress import serve
app = create_app()
serve(app)

This uses serve rather than app.run(). I'd really like to be able to easily run the live server fixture using this same format. As far as I can tell, the relevant line of code is here. It would be nice to be able to override or configure how this runs.

@dgtlmoon
Copy link

what about --live-server-host 0.0.0.0 so it listens on all interfaces?

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

No branches or pull requests

2 participants