Skip to content

reflex deploy --app-id X --project-name <nonexistent> ignores the project and deploys #7296

Description

@masenf

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-name names 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions