#!/bin/bash set -e # Validate node_modules permissions before starting if [ -d /app/peikarband/.web/node_modules/.bin ]; then echo "Checking node_modules/.bin permissions..." if [ ! -x /app/peikarband/.web/node_modules/.bin/react-router ]; then echo "WARNING: react-router is not executable, attempting to fix..." chmod +x /app/peikarband/.web/node_modules/.bin/* 2>/dev/null || true echo "Permission fix attempted (may fail if running as non-root)" else echo "✅ react-router is executable" fi fi # Change to the directory containing rxconfig.py cd /app/peikarband # Run reflex with all passed arguments exec reflex "$@"