I have an app which I want to rename however I notice that the auto generated URL is still prefixed with the old name. Is it possible to change this bu regenerating the URL to match the updated name?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

There’s currently no way to regenerate the URL for your application. But you can always create a new application and deploy the same repositories to that app. That new app will have a URL generated based on the name of that new app.

  • Bleak, ok noted. Not ideal to have to recreate & reconfigure everything, but will have to work around it :+1


    • If you have an app with multiple components or many environment variables, you can duplicate it using its app specification so you don’t have to go and manually configure everything step by step.

      1. Install doctl
      2. List your apps and find your app’s UUID: doctl apps list
      3. Save your app’s spec to a file: doctl apps spec get APP-UUID > app.yaml
      4. Open app.yaml in a text editor.
        1. Change the name of the app (the name: property at the top)
        2. If you have any environment variables with encrypted values, you will need to replace the encrypted values with their cleartext forms. This is because each app has a different encryption secret. These values will be encrypted once the spec is submitted.
      5. Create the new app: doctl apps create --spec angular.yaml.
      6. You can then remove the local app.yaml file.

      Check out the App Specification reference for more info about the app spec. Hope that helps!