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