Changeset View
Changeset View
Standalone View
Standalone View
docker/services/swh-web/entrypoint.sh
#!/bin/bash | #!/bin/bash | ||||
set -e | set -e | ||||
source /srv/softwareheritage/utils/pgsql.sh | source /srv/softwareheritage/utils/pgsql.sh | ||||
setup_pgsql | setup_pgsql | ||||
# when overriding swh-web sources only | # when overriding swh-web sources only | ||||
if [[ -d /src/swh-web ]] ; then | if [[ -d /src/swh-web ]] ; then | ||||
echo "Install and compile swh-web static assets" | echo "Install and compile swh-web static assets" | ||||
pushd /src/swh-web | pushd /src/swh-web | ||||
yarn install --frozen-lockfile | if ! yarn install --frozen-lockfile; then | ||||
echo "warning: Could not rebuild swh-web static assets" | |||||
anlambert: The warning should rather be: `WARNING: Could not install or update swh-web frontend… | |||||
anlambertUnsubmitted Not Done Inline ActionsWe could also add: You should execute yarn install in your local swh-web folder if you encounter issues related to static assets compilation anlambert: We could also add: `You should execute yarn install in your local swh-web folder if you… | |||||
fi | |||||
# execute webpack-dev-server in background | # execute webpack-dev-server in background | ||||
yarn start-dev& | yarn start-dev& | ||||
anlambertUnsubmitted Not Done Inline ActionsFrontend assets are rebuilt in memory with this call. anlambert: Frontend assets are rebuilt in memory with this call. | |||||
popd | popd | ||||
fi | fi | ||||
source /srv/softwareheritage/utils/pyutils.sh | source /srv/softwareheritage/utils/pyutils.sh | ||||
setup_pip | setup_pip | ||||
case "$1" in | case "$1" in | ||||
"shell") | "shell") | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |
The warning should rather be: WARNING: Could not install or update swh-web frontend dependencies