You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/reflex-process-management/SKILL.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
name: reflex-process-management
3
3
description: >
4
4
Manage Reflex application processes: compile to test, run the server in production mode,
5
-
reload a running app by finding and restarting the backend process, and manage logs for
5
+
reload a running app by finding and restarting the app process, and manage logs for
6
6
debugging. Use when the user wants to test, run, restart, or reload a Reflex app,
7
7
when troubleshooting a running Reflex server, or when investigating errors.
8
8
---
@@ -16,7 +16,7 @@ This skill covers how to compile, run, and reload a Reflex application.
16
16
To verify the app compiles without errors, run:
17
17
18
18
```bash
19
-
reflex compile --dry-run
19
+
reflex compile --dry
20
20
```
21
21
22
22
This checks for syntax errors, import issues, and component problems without starting the server. Use this as a quick validation step after making changes.
@@ -26,7 +26,7 @@ This checks for syntax errors, import issues, and component problems without sta
26
26
When instructed to run the Reflex server, always use production mode and redirect output to a log file:
27
27
28
28
```bash
29
-
reflex run --env prod 2>&1| tee reflex.log
29
+
reflex run --env prod --single-port 2>&1| tee reflex.log
30
30
```
31
31
32
32
This command starts a long-running server process that **does not support hot reload** in production mode. Code changes will not be picked up automatically — you must stop and restart the server to apply changes (see **Reloading a Running App** below).
@@ -39,11 +39,11 @@ Using `2>&1 | tee reflex.log` captures both stdout and stderr to `reflex.log` wh
39
39
40
40
To reload the app without manually stopping and restarting from the terminal, follow these steps:
41
41
42
-
### Step 1: Determine the backend port
42
+
### Step 1: Determine the app port
43
43
44
-
Read `reflex.log` to find the port the backend is listening on. Look for a line like `Backend running at: http://0.0.0.0:<port>`. Do not assume the port is 8000.
44
+
Read `reflex.log` to find the port the app is listening on. Look for a line like `App running at: http://0.0.0.0:<port>`. Do not assume the port is 8000.
45
45
46
-
### Step 2: Find the backend process
46
+
### Step 2: Find the app process
47
47
48
48
Using the port from Step 1, locate the process:
49
49
@@ -83,7 +83,7 @@ Once the old process has exited, truncate the old log and start the server again
83
83
84
84
```bash
85
85
> reflex.log
86
-
reflex run --env prod 2>&1| tee reflex.log
86
+
reflex run --env prod --single-port 2>&1| tee reflex.log
0 commit comments