{"html_url": "https://github.com/simonw/datasette/issues/160#issuecomment-348719680", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/160", "id": 348719680, "node_id": "MDEyOklzc3VlQ29tbWVudDM0ODcxOTY4MA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-12-02T20:59:27Z", "updated_at": "2017-12-02T20:59:27Z", "author_association": "OWNER", "body": "This is about more than just CSS and JavaScript - there are plenty of reasons someone might want to bundle HTML as well, e.g. for building something like https://sf-tree-search.now.sh/\r\n\r\nSo, instead of thinking about this in terms of /static/, I'm going to think about this in terms of allowing people to mount one or more document roots (or docroots).\r\n\r\n datasette serve mydb.db -d my-doc-root/\r\n\r\nThis will cause the root of the server to show content from the `my-doc-root/` directory (assuming it has an index.html file in it).\r\n\r\nA more common option will be to mount specific folders to specific directories, like this:\r\n\r\n datasette serve mydb.db -d static:my-static/\r\n\r\nNow any hits to `/static/foo.css` will serve content from `my-static/foo.css`", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 278208011, "label": "Ability to bundle and serve additional static files"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/160#issuecomment-348719752", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/160", "id": 348719752, "node_id": "MDEyOklzc3VlQ29tbWVudDM0ODcxOTc1Mg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-12-02T21:00:21Z", "updated_at": "2017-12-02T21:00:21Z", "author_association": "OWNER", "body": "Not sure which I like better out of `-d/--docroot` or `-s/--static` or `-m/--mount` for this.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 278208011, "label": "Ability to bundle and serve additional static files"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/160#issuecomment-348719827", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/160", "id": 348719827, "node_id": "MDEyOklzc3VlQ29tbWVudDM0ODcxOTgyNw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-12-02T21:01:36Z", "updated_at": "2017-12-02T21:01:36Z", "author_association": "OWNER", "body": "`-m` is already taken for `--metadata`.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 278208011, "label": "Ability to bundle and serve additional static files"}, "performed_via_github_app": null}