reflex-process-management

Compile, run, restart, and debug Reflex application server processes.

Updated Aug 20, 2026
One-click install
npx skills add https://github.com/ishfuseini/usecase-gen --skill reflex-process-management-ishfuseini
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reflex-process-management
Source: https://github.com/ishfuseini/usecase-gen/tree/main/.crush/skills/reflex-process-management
Command: npx skills add https://github.com/ishfuseini/usecase-gen --skill reflex-process-management-ishfuseini

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Running a Reflex app in production mode disables hot reload, so applying code changes requires manually finding and restarting the correct server process without accidentally killing browser connections. This Skill provides exact commands to compile, run, reload, and debug a Reflex app safely. ## Core Features & Use Cases - Compile Validation: Run reflex compile --dry to catch syntax, import, and component errors before starting the server. - Production Server Management: Start the app with reflex run --env prod --single-port while capturing all output to reflex.log. - Safe Process Reload: Locate the listening process by port using lsof -sTCP:LISTEN, send SIGINT/SIGTERM, and restart without killing browser sessions. - Use Case: After editing Reflex app code, ask the assistant to reload the running app; it reads the port from reflex.log, terminates only the server process, truncates the log, and restarts in production mode. ## Quick Start Reload my running Reflex app so it picks up the latest code changes.

Frequently Asked Questions about reflex-process-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I restart a running Reflex app to apply code changes?

Find the port in reflex.log, locate the listening process with `lsof -i :<port> -sTCP:LISTEN -t`, send SIGINT to stop it, then restart with `reflex run --env prod --single-port`. Production mode has no hot reload, so a restart is required.

How do I check if my Reflex app compiles without errors?

Run `reflex compile --dry` to validate the app without starting the server. It catches syntax errors, import issues, and component problems as a quick check after making changes.

Why does killing a process by port sometimes close my browser?

Plain `lsof -i :<port>` returns both the server and browser client connections. Adding the `-sTCP:LISTEN` flag filters to only the listening server process, preventing accidental termination of browser connections.

Does Reflex production mode support hot reload?

No, `reflex run --env prod` does not support hot reload. Code changes are not picked up automatically; you must stop the server process and start it again to apply changes.

What can I use if lsof is not available to find the server process?

Use `ss -tlnp | grep :<port>` or `fuser <port>/tcp` as alternatives to identify the process listening on the app's port before sending an interrupt signal.