Re: How to create/start an APP in quickest way


Daniel Mikusa
 

Have you looked at `cf copy-source`? You can use that to copy one app to
another. You could then change service bindings, environment variables and
scale the copy of the app separately. I believe you will still need to
stage the app though, at least if you change env variables or service
bindings it is recommended.

Dan

On Thu, May 5, 2016 at 6:40 AM, Stanley Shen <meteorping(a)gmail.com> wrote:

Hello, all

As we know, right now if we want to create an APP, we need push it to CF,
which will cause us some time.
It needs to download buildpack, upload APP bits etc, it may takes several
minutes.

We have scenario that we want to launch this APP for serveral instances,
the only difference is that they are binding to different services, routes,
right now we only push them separately.

But we do want to have a quick way to do that, do we have something like
cloning an APP, and then just change something binding as we needed?

We can scale APP instance number by running "cf scale APP_NAME -i 3" for
example, and I can see the other 2 instances are started soon after running
this "scale" command, how we did that?

Join {cf-dev@lists.cloudfoundry.org to automatically receive all group messages.