home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1247316097

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/1809#issuecomment-1247316097 https://api.github.com/repos/simonw/datasette/issues/1809 1247316097 IC_kwDOBm6k_c5KWIiB 9599 2022-09-14T21:22:24Z 2022-09-14T21:22:24Z OWNER

It looks like this is the only place that calls invoke_startup(): https://github.com/simonw/datasette/blob/1d64c9a8dac45b9a3452acf8e76dfadea2b0bc49/datasette/cli.py#L590-L591

datasette-publish-vercel is the one deployment mechanism that skips running Uvicorn, and it calls that method separately here: https://github.com/simonw/datasette-publish-vercel/blob/1559d979b4e3b1f2f83c51c3c0c10192ff9a6d0c/datasette_publish_vercel/init.py#L42-L52

python ds = Datasette( [], {database_files}, static_mounts=static_mounts, metadata=metadata{extras}, secret=secret, cors=True, settings={settings}{crossdb} ) asyncio.run(ds.invoke_startup()) app = ds.app() So preparing the Jinja environment inside that function would work fine.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
1373595927  
Powered by Datasette · Queries took 1.177ms · About: github-to-sqlite