run 422 B

123456789101112131415161718192021
  1. #!/command/with-contenv bash
  2. # shellcheck shell=bash
  3. set -e
  4. # This service is DEVELOPMENT only.
  5. if [ "$DEVELOPMENT" = 'true' ]; then
  6. . /usr/bin/common.sh
  7. cd /app/frontend || exit 1
  8. HOME=$NPMHOME
  9. export HOME
  10. mkdir -p /app/frontend/dist
  11. chown -R "$PUID:$PGID" /app/frontend/dist
  12. log_info 'Starting frontend ...'
  13. s6-setuidgid "$PUID:$PGID" yarn install
  14. exec s6-setuidgid "$PUID:$PGID" yarn watch
  15. else
  16. exit 0
  17. fi