Hi,
I was reading the Pyramid cookbook and found the Heroku deployment guide.
There's a section inside that talks about creating a file called
running.py:
import os
from paste.deploy import loadappfrom waitress import serve
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
app = loadapp('config:production.ini', relative_to='.')
serve(app, host='0.0.0.0', port=port)
I was wondering how to create one for Gunicorn? I could not find anything
similar to the serve function in Gunicorn.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pylons-discuss/-/XXoRq5fy--UJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.