2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
9 . /usr/local/lib/arvbox/common.sh
11 cd /usr/src/workbench2
13 npm -d install --prefix /usr/local --global yarn
17 if test "$1" = "--only-deps" ; then
21 cat <<EOF > /usr/src/workbench2/public/config.json
23 "API_HOST": "${localip}:${services[controller-ssl]}",
24 "VOCABULARY_URL": "vocabulary-example.json",
25 "FILE_VIEWERS_CONFIG_URL": "file-viewers-example.json"
30 # Can't use "yarn start", need to run the dev server script
31 # directly so that the TERM signal from "sv restart" gets to the
33 exec node node_modules/react-scripts-ts/scripts/start.js