diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-01-01 19:07:12 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-01-01 19:07:12 +0000 |
| commit | 134c9185ad129da5082aaf174d2bb13a8cc95366 (patch) | |
| tree | 2a43895c8cb14cd2f6dab185296c5850ce0bbe97 | |
| parent | DOI references (diff) | |
| download | mmm-ba.tar.gz mmm-ba.zip | |
update README.mdba
| -rw-r--r-- | README.md | 25 |
1 files changed, 10 insertions, 15 deletions
@@ -24,22 +24,12 @@ You can build the static content with: $ tup init $ tup -Next you can render a sqlite3 mmmfs database using +Then you can run the interactive server (`build/server.moon`): - $ moon build/render_all.moon db.sqlite3 - -Then, run some kind of HTTP server from within `out`, e.g. with python 3 installed: - - $ cd root - $ python -m http.server + $ moon build/server.moon fs You can then view the website in your browser. -The example above will provide it at `http://localhost:8000`. - -During development you may want to automatically rebuild the project as files are changed. -You can do this with the following command: - - $ tup monitor -f -a +It should be availabe at `http://localhost:8000`. ### Dependencies @@ -59,9 +49,14 @@ Not required but recommended: - [discount](https://luarocks.org/modules/craigb/discount): `luarocks install discount` (requires libmarkdown2, for Markdown support) ### Live Reloading (during development) -[entr][entr] is useful for reloading the dev server when code outside the root changes: +During development you may want to automatically rebuild the project as files are changed. +You can let tup automatically rebuild the client runtime and stylesheet with the following command: + + $ tup monitor -f -a + +[entr][entr] is useful for reloading the realtime server when code outside the root changes: - $ ls build/**.moon mmm/**.moon | entr -r moon build/server.moon fs + $ ls {build,mmm}/**.moon | entr -r moon build/server.moon fs [moonscript]: https://moonscript.org/ [mmm]: https://mmm.s-ol.nu/ |
