`reflex deploy --app-id X --project-name <nonexistent>` ignores the project and deploys
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
Research direction
Look at the reflex-hosting-cli package, specifically the deploy command logic. The issue is likely in the argument validation where --app-id and --project-name are handled. Start by finding the deploy command entry point, then trace how these flags are parsed and validated. Check if there's a validation step that compares the app's project with the provided project name. Running the failing command locally with debug output can help identify the missing check.
Written by the indexing model from the issue text.
Description
Package: reflex-hosting-cli (reproduced on main at ea035ea47 and on #7207 at 988718e78)
When --app-id is given, --project-name is not validated. A project name that does not exist is ignored, and a full deploy of the app starts:
$ reflex deploy --app-id <existing app id> --project-name nope-project --no-interactive
... Compiling ... Creating Production Build ... Zipping Frontend ...
[exit=0]
A new deployment appears in reflex cloud apps history <app id>. The same happens with any --project-name that doesn't match the app's actual project.
Expected: fail before building, in either of these cases:
- the named project does not exist, or
--project/--project-namenames a different project than the one that owns--app-id.
A mistyped or mismatched project should not trigger a deploy to whichever project the app is in.
- Dominant language
- Python
- Stars
- 28.9k
- Forks
- 1.8k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 180
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from reflex-dev/reflex
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
reflex-dev/reflex#7300 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
reflex-dev/reflex#7298 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
reflex-dev/reflex#7297 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
reflex-dev/reflex#7295 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
reflex-dev/reflex#7294 · 1 comment ·
All issues in reflex-dev/reflex
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stephrobert/dsoxlab#238 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
sublimehq/package_control#1780 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
nwg-piotr/nwg-displays#145 ·