Reputation: 1955
Is there any possibility to keep older directories intact while pushing static application files on PCF?
For example I have deployed 2 folders V1 & latest on PCF, On next deployment I will push "V2" & "latest" & expectation is "V1" shouldn't be deleted, "latest" should be overridden & "V2 should be deployed!
Upvotes: 1
Views: 342
Reputation: 15051
It won't work the way you're thinking about it, but I think you can achieve the end result you want. Here's what I would suggest.
Whatever you have locally & push will be your app. Thus if you want V1 + Latest, then you need to push V1 + Latest. If you want V1 + V2 + Latest, then you push all three of those. If you want V1 + V2 + V3 + Latest, then that's what you push.
What you push is what you'll end up with in your app.
Ex:
Folders:
app/
v1/
latest/
Run cf push my-cool-app
from app/
and you'll end up with v1 + latest being served up.
Folders:
app/
v1/
v2/
v3/
latest/
Run cf push my-cool-app
from app/
and you'll end up with v1 + v2 + v3 + latest being served up.
Hope that helps!
Upvotes: 1