posit-dev / posit-dev/rsconnect-python
rsconnect and predefined app name/url
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 37
- Forks
- 28
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 7
Description
I have a question regarding rsconnect and how to optimally deploy (python in our case) apps. We recently switched to rsconnect and one limitation we found is that you cannot deploy the app with a predefined app name/ url.
When we run the following command for example:
rsconnect deploy fastapi --name rsconnect_server --entrypoint main:app ./
The app is deployed and a new app id is generated, but we do not know this app id in advance. Then we need to re-deploy the app as following:
rsconnect deploy fastapi --name rsconnect_server --app-id <APP ID GENERATED> --entrypoint main:app ./
What would be ideal for us is to have an option to specify an app name and use that as from the very beginning. So something like:
rsconnect deploy fastapi --app-name my_app --name rsconnect_server --entrypoint main:app ./
That would would deploy the app in:
rsconnect.server/connect/#/apps/my_app
And it would not require us to manually get the app-id. Is there such option, or is there a plan to implement something like that?
Thank you in advance for your help.
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.
Research direction
Start by tracing the rsconnect deploy fastapi entry point and the existing --app-id handling. Compare the first deployment flow with the redeployment flow; done would mean an app-name option can identify the target from the initial deployment without manually retrieving a generated app ID.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fastapi, python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100