Spaces:
Running
Running
chore: update startup script configuration for HuggingClip service
Browse files
start.sh
CHANGED
|
@@ -176,8 +176,13 @@ if [ -n "${CLOUDFLARE_PROXY_URL:-}" ] && [ -f /app/cloudflare-proxy.js ]; then
|
|
| 176 |
_CF_NODE_OPTS="--require /app/cloudflare-proxy.js"
|
| 177 |
fi
|
| 178 |
|
| 179 |
-
# ββ
|
|
|
|
| 180 |
export GEMINI_SANDBOX=false
|
|
|
|
|
|
|
|
|
|
|
|
|
| 181 |
|
| 182 |
# ββ Background sync loop ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 183 |
if [ -n "${HF_TOKEN:-}" ]; then
|
|
|
|
| 176 |
_CF_NODE_OPTS="--require /app/cloudflare-proxy.js"
|
| 177 |
fi
|
| 178 |
|
| 179 |
+
# ββ Gemini CLI environment βββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 180 |
+
# Disable sandbox (would try to start Docker inside Docker)
|
| 181 |
export GEMINI_SANDBOX=false
|
| 182 |
+
# Trust the workspace β paperclip user runs from /app/paperclip (root-owned).
|
| 183 |
+
# Without this, gemini's relaunch child fails the trust check and parent reports
|
| 184 |
+
# "Failed to relaunch the CLI process."
|
| 185 |
+
export GEMINI_CLI_TRUST_WORKSPACE=true
|
| 186 |
|
| 187 |
# ββ Background sync loop ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 188 |
if [ -n "${HF_TOKEN:-}" ]; then
|