How do I change the URL of my deployed app?

2,108 views
Skip to first unread message

Dirk Haupt

unread,
Jan 19, 2016, 9:43:13 PM1/19/16
to ShinyApps Users
Hi,

I have two applications running and have a basic plan and thus far am a happy customer. I would like to change the URL of my applications (I don't want to add an additional custom domain, just permanently change the current URL). So instead of https://urpanalyses.shinyapps.io/URP-Application I'd like it to be https://urpanalyses.shinyapps.io/URP-version1.

So a simple change. Obviously I could have had my desired URL if I made it from the start so I'm wondering if there's a straightforward way to do this.

I have tried changing the directory name where server and ui are located and and redeploying, but I then get:
Preparing to deploy application...Error: /v1/applications/ 400 - Validation Error
Execution halted

Thanx for the hand,
Dirk

Andy Kipp

unread,
Jan 20, 2016, 9:50:27 AM1/20/16
to Dirk Haupt, ShinyApps Users
The easiest way to deploy an application with a new URL is to deploy a new app using the new name and delete the old one.

You can do:

deployApp("path/to/my/app", appName="URP-version1")

The other option is delete the rsconnect directory in side your application, and then rename the directory to "URP-version1".

After that you can simply terminate, and then delete the old one.


--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/9fe61c4b-7224-421a-830f-bb0caa887cc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dirk Haupt

unread,
Jan 25, 2016, 1:11:22 PM1/25/16
to Andy Kipp, ShinyApps Users
Turns out my directory had a space so it was "URP version1." Removing the space and adding a hyphen like I had intended solved the issue
Reply all
Reply to author
Forward
0 new messages