Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions reflex/utils/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,9 @@ def build():
path_ops.rm(str(wdir / constants.Dirs.BUILD_DIR))

checkpoints = [
"building for production",
"building SSR bundle for production",
"building client environment for production...",
"modules transformed",
"building ssr environment for production...",
"built in",
]

Expand Down
11 changes: 6 additions & 5 deletions reflex/utils/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,12 @@ def show_progress(message: str, process: subprocess.Popen, checkpoints: list[str
task = progress.add_task(f"{message}: ", total=len(checkpoints))
for line in stream_logs(message, process, progress=progress):
# Check for special strings and update the progress bar.
special_string = checkpoints[0]
if special_string in line:
progress.update(task, advance=1)
checkpoints.pop(0)
if not checkpoints:
while checkpoints:
special_string = checkpoints[0]
if special_string in line:
progress.update(task, advance=1)
checkpoints.pop(0)
continue
break
Comment thread
adhami3310 marked this conversation as resolved.


Expand Down
Loading