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
- Backman on iAPC to backup the database service running on other cloud platform (TCI)
- where to point CNAME entry for cloudfoundry routes distinguished by path?
- Cannot connect to the MySQL Swsscom service on hostcenter.com
- MariaDB Service Availability
- Tensorflow/Tensorboard on s3
- Customising accessHost value in Dynamic Storage service key
- How do I add Flask-PyMongo to environment.yml?
- Is it possible to override disk space and memory settings with the Cloud Foundry task scheduler?
- Which persistence mode is Redis using in Swisscom AppCloud?
- How can I move an app from one space to another?
- Failure when trying to delete service key of s3 storage service
- How to create a secure internal route in the CloudFoundry environment (Swisscom AppCloud)
- https not working as expected on swisscom CloudFoundry
- The Nginx reverse proxy does not reach the app via the internal route after restarting
- Create a Cloud Foundry Service from a hosted Cloud Foundry application
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 # Hahtags
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.