mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-24 05:38:15 -05:00
19 lines
389 B
Plaintext
Executable File
19 lines
389 B
Plaintext
Executable File
#!/command/with-contenv bash
|
||
set -e
|
||
|
||
echo "❯ Starting backend ..."
|
||
|
||
if [ "$DEVELOPMENT" == "true" ]; then
|
||
HOME=/tmp/npmuserhome
|
||
GOPATH="$HOME/go"
|
||
mkdir -p "$GOPATH"
|
||
chown -R npmuser:npmuser "$GOPATH"
|
||
export HOME GOPATH
|
||
rm -rf /app/backend/.task
|
||
cd /app/backend || exit 1
|
||
exec s6-setuidgid npmuser task -w
|
||
else
|
||
cd /app/bin || exit 1
|
||
exec s6-setuidgid npmuser /app/bin/server
|
||
fi
|