-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add CLI option `learn-ocaml build --build-dir=[./_learn-ocaml-b…
…uild]` (#585) Motivation: - in current master, the exercises were always precompiled in-place; - this conflicted with the documented workflow (option "ro"): - https://ocaml-sf.org/learn-ocaml/howto-deploy-a-learn-ocaml-instance.html - https://ocaml-sf.org/learn-ocaml/howto-setup-exercise-development-environment.html - this new option makes it possible to copy and precompile exercises apart by default (in the ./_learn-ocaml-build/exercises subdirectory, which is erased before the build). Examples: - `learn-ocaml build --repo=demo-repository` - `learn-ocaml build --repo=demo-repository serve` - `learn-ocaml build --repo=demo-repository serve --replace` # or - `learn-ocaml build --repo=demo-repository --build-dir=demo-repository` # to retrieve the previous behavior of learn-ocaml master. Note: externalizing the build-dir in a volume looks unneeded: if the build-dir is shared, but the container is deleted, the www is deleted as well, and the exercices are rebuilt anyway and an extra volume would add more noise (mandating `-v args` tweaks)
- Loading branch information
Showing
1 changed file
with
73 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters