mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
22 lines
418 B
Plaintext
Executable File
22 lines
418 B
Plaintext
Executable File
#!/command/with-contenv bash
|
|
# shellcheck shell=bash
|
|
|
|
set -e
|
|
|
|
# This service is DEVELOPMENT only.
|
|
|
|
if [ "$DEVELOPMENT" = 'true' ]; then
|
|
. /bin/common.sh
|
|
cd /app/frontend || exit 1
|
|
HOME=$NPMHOME
|
|
export HOME
|
|
mkdir -p /app/frontend/dist
|
|
chown -R "$PUID:$PGID" /app/frontend/dist
|
|
|
|
log_info 'Starting frontend ...'
|
|
s6-setuidgid "$PUID:$PGID" yarn install
|
|
exec s6-setuidgid "$PUID:$PGID" yarn watch
|
|
else
|
|
exit 0
|
|
fi
|