I have created a new space in the organisation and I have to move several apps from one space to the newly created one. How can I do this? (I don't want to rename the old space since only a subset of its apps need to be moved.
How can I move an app from one space to another?
706 Views Asked by Gabriel Petrovay At
1
There are 1 best solutions below
Related Questions in SWISSCOMDEV
- Cannot access to Swisscom DB Service anymore
- Deployment fails with a 504
- Connection to a S3 instance using a service-connector
- Swisscom Application Cloud: nodejs with java jdk
- in which cpu mode does the CF run the containers?
- Cloudfoundry: Same domain in two orgs
- Cloudfoundry: SSL cert for shared domain
- Swisscom Cloud Foundry: Is there a way to request app instances to run in separate regions?
- How can I scale CloudFoundry applications "down" without the risk of restarting all of them?
- Cannot connect with mongo db (cf ssh) - MongoNetworkError
- Create, restore, and download MongoDB backups automatically on Swisscom Application Cloud
- How to delete app with CF CLI when error occurs
- Application Performance monitoring on Swisscom Application Cloud
- How can I download a logfile from Swisscom cloud foundry
- Why are my mongodb queries so slow (on Swisscom cloud)?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I'm afraid there is no such function to move apps from one space to another. There are two possibilities to achieve it, though:
Compile & Push
If you have access to the source-code of the app and use a common CI/CD setup, simply adjust your scripts, have them point to the new space and trigger a complete CI/CD cycle.
Download & Push
If you don't have access to the source-code, the binary-repository where you store your binaries or have to ensure it is 100% the same droplet in the new space, you can download that droplet from Cloud Foundry and push it to the new space:
cf app source-app --guidto get your source app guidcf curl /v2/apps/:source-guid/droplet/download --output /tmp/droplet.tgzto download the source app's droplet to your local machine (note that if your Cloud Controller is configured to use a remote blobstore this command will return a redirect to the actual location of the droplet)cf target -s destination-spaceto target the space you want to push the copied droplet tocf push --droplet /tmp/droplet.tgz destination-app-nameCredits: Github
This will work for buildpack-based apps but not for Docker-based apps, as you can't simply download docker-binaries.
Pitfall: If you want to use the same route again, don't forget to delete (not just unbind) it from your old space.