add ba_log entry 2019-10-08
s-ol
3 years ago
0 | Today I mostly fixed the output/rendering of the 'live' server I implemented yesterday. | |
1 | ||
2 | I changed the URL scheme, it no longer uses headers, which made it hard to link to resources through `<link>` and `<script>` tags. | |
3 | Instead the path, facet-name and type are now all part of the URI: | |
4 | ||
5 | | URI | fileder path | facet name | type | | |
6 | | ---------------------------------------------- | ------------------ | --------------- | ------------------------------ | | |
7 | | `/fileder/facet: type/subtype -> wrapped/type` | `/path/to/fileder` | `facet` | `type/subtype -> wrapped/type` | | |
8 | | `/fileder/: some/type` | `/fileder` | (default facet) | `some/type` | | |
9 | | `/fileder/alternate:` | `/fileder` | `alternate` | `text/html` (default type) | | |
10 | | `/` | `/` | (default facet) | `text/html` (default type) | | |
11 | ||
12 | The fileder-index metadata was moved to a `?index` 'pseudofacet' (e.g. `/fileder/?index`). | |
13 | ||
14 | I also added support to the server for serving static assets (e.g. the CSS stylesheet) from the `static` directory. | |
15 | These files are accessible through the `/.static/` route (e.g. `/.static/main.css`), where they shouldn't interfere | |
16 | with the mmmfs contents. | |
17 | With the layout adjsuted to use these new paths, the live server now looks properly styled again too! | |
18 | ||
19 | Finally I worked on the Dockerfile and my deployment a bit, | |
20 | so that my updates to the code will now be automatically applied to my test site, | |
21 | which is available at [ba.s-ol.nu](//ba.s-ol.nu) (which might be where you are reading this right now!). |