posit-dev / rsconnect-python

Command line interface for publishing to Posit Connect
https://docs.posit.co/rsconnect-python/
GNU General Public License v2.0
28 stars 20 forks source link

rsconnect and predefined app name/url #357

Open fgypas opened 1 year ago

fgypas commented 1 year ago

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.

hadley commented 1 year ago

Moved to rsconnect-python.