RayMelius Claude Opus 4.6 commited on
Commit
2bfd43d
Β·
1 Parent(s): ed3758a

Fix HF Spaces: start nginx in run.sh for port 7860 proxy

Browse files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. run.sh +7 -0
run.sh CHANGED
@@ -113,6 +113,13 @@ start_all() {
113
  echo -e "${CYAN}β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•${NC}"
114
  echo ""
115
 
 
 
 
 
 
 
 
116
  start_dashboard
117
  sleep 2
118
  start_fix
 
113
  echo -e "${CYAN}β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•${NC}"
114
  echo ""
115
 
116
+ # Start nginx reverse proxy (needed for HF Spaces β€” port 7860)
117
+ if command -v nginx &>/dev/null; then
118
+ log "Starting nginx..."
119
+ nginx
120
+ ok "nginx started (port 7860 β†’ dashboard:${DASHBOARD_PORT})"
121
+ fi
122
+
123
  start_dashboard
124
  sleep 2
125
  start_fix