Open zackverham opened 5 months ago
redeploy should accept an optional account. If specified, make sure it belongs to the correct server (matching URL).
hmm - when I look at the available args / flags for redeploy, I don't see any account options:
➜ publisher redeploy --help
Usage: publisher redeploy <deployment-name> [<path>]
Arguments:
<deployment-name> Name of deployment to update (in .posit/deployments/)
[<path>] Path to project directory containing files to publish.
Flags:
-h, --help Show context-sensitive help.
-v, --verbose=INT Enable verbose logging. Use -vv or --verbose=2 for debug logging.
-c, --config=STRING Configuration name (in .posit/publish/)
Sorry, the triage notes above weren't clear - it "should" accept an account name and then verify that it matches, but currently it does neither of those things.
ahhhh, gotcha :-)
In the chaos of local development / testing, I have two accounts being picked up by the publisher which reference my localhost connect instance:
My RStudio IDE account has an invalid API key - so I can't deploy using the "localhost" account.
Initial deployment lets me specify the correct account:
but the
redeploy
command doesn't let me specify the account to use - it seems to be using the incorrect account (I'm assuming its deriving the account to use from the server URL) which is making my redeployments fail.