samoht / mirage-www

Website infrastructure for openmirage.org

Home Page:http://www.openmirage.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mirage.io

Website infrastructure and content for mirage.io

Set up your development environment

You need opam. You can install it by following opam's documentation.

With opam installed, you can install the dependencies in a new local switch with:

make switch

Or globally, with:

make deps

You'll also need to download the TailwindCSS CLI. You can follow the TailwindCSS documentation to do this. Put the binary in /tailwindcss.

Make sure to give execution rights to the file:

chmod +x tailwindcss

Then, build the project with:

make build

Running the server

After building the project, you can run the server with:

make start

To start the server in watch mode, you can run:

make watch

This will restart the server on filesystem changes and reload the pages automatically.

MirageOS unikernel

Alternatively, the mirage/ folder implements the webserver as a MirageOS 4 unikernel. To set it up, install the mirage tool:

opam repo add mirage-dev https://github.com/mirage/mirage-dev.git # until MirageOS 4 is released
opam install "mirage>=4.0.0"

Then, the unikernel can be configured:

mirage configure -f mirage/config.ml -t <TARGET> ...

Fetch the dependencies:

make depends

Build the unikernel:

dune build mirage/

Clean up:

mirage clean -f mirage/config.ml
rm -rf mirage/duniverse

About

Website infrastructure for openmirage.org

http://www.openmirage.org/

License:ISC License


Languages

Language:OCaml 97.2%Language:CSS 2.6%Language:Dockerfile 0.1%Language:JavaScript 0.0%Language:Makefile 0.0%