Skip to content

Commit

Permalink
Merge 7d8b3ba into 83d8b34
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Mar 24, 2020
2 parents 83d8b34 + 7d8b3ba commit 31e1b0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export OPAMROOT="$CACHE_DIR/opam"
echo "/tmp/opam
Y" | sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)

# Enter source directory.
# Enter source directory, install opam and dependencies.
cd "$BUILD_DIR"

. "$BUILD_DIR/bin/install-deps"
bin/install-deps --no-backup
eval $(opam env)

# Build our app.
dune build --profile release
4 changes: 2 additions & 2 deletions bin/install-deps
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash

set -eux
set -eu

# Set up opam, install dune and menhir (it's not a library dependency).
opam init --disable-sandboxing -n
opam init --disable-sandboxing -n "$@"
opam install dune menhir -y

eval $(opam env)
Expand Down
2 changes: 1 addition & 1 deletion web/apigen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let wrap req_of_yojson res_to_yojson f req =
in
respond 0 res_to_yojson (f decoded)
with e ->
respond 0 text_to_yojson (Printexc.to_string e)
respond 1 text_to_yojson (Printexc.to_string e)

let () =
let port_ = ref 8080 in
Expand Down

0 comments on commit 31e1b0e

Please sign in to comment.