posit-dev / posit-dev/rsconnect-python

rsconnect and predefined app name/url

Open
#357 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.