fix: run web app via uvicorn/ASGI by default
just seems faster
This commit is contained in:
parent
ccb64c5c4d
commit
8cc4af950e
2 changed files with 14 additions and 3 deletions
|
|
@ -32,7 +32,8 @@ dependencies = [
|
|||
"farmOS",
|
||||
"psycopg2",
|
||||
"pyramid_exclog",
|
||||
"WuttaWeb[continuum]>=0.27.3",
|
||||
"uvicorn[standard]",
|
||||
"WuttaWeb[continuum]>=0.27.4",
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@
|
|||
|
||||
${self.section_wutta_config()}
|
||||
|
||||
${self.section_wutta_web()}
|
||||
|
||||
|
||||
<%text>##############################</%text>
|
||||
# pyramid
|
||||
|
|
@ -39,15 +41,23 @@ ${self.sectiongroup_logging()}
|
|||
require = %(here)s/wutta.conf
|
||||
</%def>
|
||||
|
||||
<%def name="section_wutta_web()">
|
||||
[wutta.web]
|
||||
app.runner = uvicorn
|
||||
app.spec = ${pkg_name}.web.app:make_asgi_app
|
||||
app.factory = true
|
||||
app.interface = asgi3
|
||||
app.port = ${pyramid_port}
|
||||
</%def>
|
||||
|
||||
<%def name="section_app_main()">
|
||||
[app:main]
|
||||
#use = egg:wuttaweb
|
||||
use = egg:${egg_name}
|
||||
|
||||
pyramid.reload_templates = true
|
||||
pyramid.debug_all = true
|
||||
pyramid.default_locale_name = en
|
||||
#pyramid.includes = pyramid_debugtoolbar
|
||||
#pyramid.includes = pyramid_debugtoolbar pyramid_exclog
|
||||
|
||||
beaker.session.type = file
|
||||
beaker.session.data_dir = %(here)s/cache/sessions/data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue