Skip to content

Commit b2debe4

Browse files
committed
Merge branch 'main' into release/reflex-0.8.0
2 parents 35f0018 + cd1a9e1 commit b2debe4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+696
-281
lines changed

.github/workflows/check_node_latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- main
1212

1313
env:
14-
TELEMETRY_ENABLED: false
14+
REFLEX_TELEMETRY_ENABLED: false
1515

1616
jobs:
1717
check_latest_node:

.github/workflows/integration_app_harness.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252

5353
- name: Run app harness tests
5454
env:
55-
REDIS_URL: ${{ matrix.state_manager == 'redis' && 'redis://localhost:6379' || '' }}
55+
REFLEX_REDIS_URL: ${{ matrix.state_manager == 'redis' && 'redis://localhost:6379' || '' }}
5656
run: |
5757
uv run playwright install chromium
5858
uv run pytest tests/integration --retries 3 -v --maxfail=5 --splits 2 --group ${{matrix.split_index}}

.github/workflows/integration_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ env:
2828
# - Catch encoding errors when printing logs
2929
# - Best effort print lines that contain illegal chars (map to some default char, etc.)
3030
PYTHONIOENCODING: "utf8"
31-
TELEMETRY_ENABLED: false
31+
REFLEX_TELEMETRY_ENABLED: false
3232
NODE_OPTIONS: "--max_old_space_size=8192"
3333
PR_TITLE: ${{ github.event.pull_request.title }}
3434

.github/workflows/performance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
workflow_dispatch:
1313

1414
env:
15-
TELEMETRY_ENABLED: false
15+
REFLEX_TELEMETRY_ENABLED: false
1616
NODE_OPTIONS: "--max_old_space_size=8192"
1717
PR_TITLE: ${{ github.event.pull_request.title }}
1818
APP_HARNESS_HEADLESS: 1

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
if: ${{ matrix.os == 'ubuntu-latest' }}
6161
run: |
6262
export PYTHONUNBUFFERED=1
63-
export REDIS_URL=redis://localhost:6379
63+
export REFLEX_REDIS_URL=redis://localhost:6379
6464
uv run pytest tests/units --cov --no-cov-on-fail --cov-report=
6565
# Change to explicitly install v1 when reflex-hosting-cli is compatible with v2
6666
- name: Run unit tests w/ pydantic v1

docker-example/production-app-platform/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
# then copy the contents of `frontend.zip` to your static file server (github pages, s3, etc).
66
#
77
# Azure Static Web App example:
8-
# npx @azure/static-web-apps-cli deploy --env production --app-location .web/_static
8+
# npx @azure/static-web-apps-cli deploy --env production --app-location .web/build/client
99
#
1010
# For dynamic routes to function properly, ensure that 404s are redirected to /404 on the
1111
# static file host (for github pages, this works out of the box; remember to create .nojekyll).
1212
#
13-
# For azure static web apps, add `staticwebapp.config.json` to to `.web/_static` with the following:
13+
# For azure static web apps, add `staticwebapp.config.json` to to `.web/build/client` with the following:
1414
# {
1515
# "responseOverrides": {
1616
# "404": {

docker-example/production-app-platform/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Deploy a `redis` instance on the vnet.
3333
### Backend
3434

3535
The backend is built by the `Dockerfile` in this directory. When deploying the
36-
backend, be sure to set REDIS_URL=redis://internal-redis-hostname to connect to
36+
backend, be sure to set REFLEX_REDIS_URL=redis://internal-redis-hostname to connect to
3737
the redis service.
3838

3939
### Ingress
@@ -51,7 +51,7 @@ The frontend should be hosted on a static file server or CDN.
5151
to the ingress hostname of the backend service.
5252

5353
If you will host the frontend from a path other than the root, set the
54-
`FRONTEND_PATH` environment variable appropriately when exporting the frontend.
54+
`REFLEX_FRONTEND_PATH` environment variable appropriately when exporting the frontend.
5555

5656
Most static hosts will automatically use the `/404.html` file to handle 404
5757
errors. _This is essential for dynamic routes to work correctly._ Ensure that
@@ -108,7 +108,7 @@ container volume. Use Azure Files and mount it into the container at /app/upload
108108
- In the environment, create a new files share (get the storage key)
109109
- Deploy the backend as a Container App
110110
- Create a custom Container App Environment linked up to the same vnet as the redis container.
111-
- Set REDIS_URL and DB_URL environment variables
111+
- Set REFLEX_REDIS_URL and REFLEX_DB_URL environment variables
112112
- Add the volume from the environment
113113
- Add the volume mount to the container
114114
- Deploy the frontend as a Static Web App
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
FROM library/caddy
22

3-
COPY --from=local/reflex-app /app/.web/_static /srv
3+
COPY --from=local/reflex-app /app/.web/build/client /srv
44
ADD Caddyfile /etc/caddy/Caddyfile

docker-example/production-compose/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ RUN $uv pip install -r requirements.txt
2626
# Deploy templates and prepare app
2727
RUN reflex init
2828

29-
# Export static copy of frontend to /app/.web/_static
29+
# Export static copy of frontend to /app/.web/build/client
3030
RUN reflex export --frontend-only --no-zip
3131

3232
# Copy static files out of /app to save space in backend image
33-
RUN mv .web/_static /tmp/_static
34-
RUN rm -rf .web && mkdir .web
35-
RUN mv /tmp/_static .web/_static
33+
RUN mv .web/build/client /tmp/client
34+
RUN rm -rf .web && mkdir -p .web/build
35+
RUN mv /tmp/client .web/build/client
3636

3737
# Stage 2: copy artifacts into slim image
3838
FROM python:3.13-slim

docker-example/production-compose/compose.prod.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ services:
1515

1616
app:
1717
environment:
18-
DB_URL: postgresql+psycopg://postgres:secret@db/postgres
19-
REDIS_URL: redis://redis:6379
18+
REFLEX_DB_URL: postgresql+psycopg://postgres:secret@db/postgres
19+
REFLEX_REDIS_URL: redis://redis:6379
2020
depends_on:
2121
- db
2222
- redis

0 commit comments

Comments
 (0)