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

serve_paste isn’t documented #137

Open
hynek opened this issue Sep 15, 2016 · 0 comments
Open

serve_paste isn’t documented #137

hynek opened this issue Sep 15, 2016 · 0 comments

Comments

@hynek
Copy link

hynek commented Sep 15, 2016

I’ve spent quite a bit of time today to get rid of the .ini file with Pyramid and the biggest problem turned out to be configuring waitress to work with pserve egg:my_pkg.

I did know about paste.server_runner but the missing piece was waitress:serve_paste that works with it. It would be nice if people after me could find that information in the documentation. :)

For people coming from Google, the solution is passing

"""
[paste.app_factory]
main = your-app-package:main
[paste.server_runner]
main = waitress:serve_paste
"""

into entry_points of your setup.py.

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

No branches or pull requests

1 participant