Skip to content

Commit e33b257

Browse files
committed
Run the project venv's jac for --scale deploy
jac install installs the jac-scale plugin into .jac/venv; the global jac CLI builds its arg parser before that venv is on sys.path, so it does not recognize the plugin-contributed --scale flag. Invoke .jac/venv/bin/jac so jac-scale is loaded at startup.
1 parent bdc03ea commit e33b257

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ jobs:
5454
- name: Deploy jaseci-blogs with jac-scale
5555
working-directory: .
5656
run: |
57-
jac start main.jac --scale
57+
# `jac install` put jaclang + jac-scale + jac-client into the project
58+
# venv (.jac/venv). Run THAT venv's jac so the jac-scale plugin loads
59+
# at startup and registers the `--scale` flag — the global `jac` (from
60+
# `pip install jaclang`) builds its arg parser before the venv is on
61+
# the path, so it does not recognize `--scale`.
62+
.jac/venv/bin/jac start main.jac --scale
5863
5964
- name: Verify deployment
6065
run: |

0 commit comments

Comments
 (0)