Quantcast
Channel: OCaml - Topics tagged dune
Viewing all articles
Browse latest Browse all 521

Dune exec + dune build running in the same project (web server + melange)

$
0
0

In a full stack project with both a web server and a melange frontend:

dune-project
  my_server
  my_react_app
  • it’s nice to start the web server with dune exec -w my_server
  • build the melange project with dune build -w @my_react_app

but when running either one after the other you get a dune lock error: A running dune (pid: ...) instance has locked the build directory.

How can you run both watchers at the same time? Or is there a better way?

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 521

Trending Articles