posit-dev / posit-dev/rsconnect-python

rsconnect and predefined app name/url

Offen
#357 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Python
Sterne
37
Forks
28
Ø Merge
1 T. 3 Std.
Gemergte PRs (30 T.)
7

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, den Einstiegspunkt rsconnect deploy fastapi und die bestehende Behandlung von --app-id nachzuverfolgen. Vergleiche den Ablauf der ersten Bereitstellung mit dem Ablauf einer erneuten Bereitstellung; die Aufgabe wäre erledigt, wenn eine app-name-Option das Ziel bereits bei der ersten Bereitstellung identifizieren kann, ohne eine generierte App-ID manuell abrufen zu müssen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
fastapi, python
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.