18F / cloud-foundry-cli

Docker image for running the Cloud Foundry CLI
https://hub.docker.com/r/18fgsa/cloud-foundry-cli/
1 stars 2 forks source link

Better support for first-time deployments #8

Closed rogeruiz closed 6 years ago

rogeruiz commented 6 years ago

Because cf_deploy.sh only uses the Autopilot plugin, apps will fail to push if it's the first time they're being deployed. The deployment script should support the scenario when the application doesn't already exist in the supplied org and space.

adborden commented 6 years ago

I've done this before with something like

command=push
if cf app $app; then
  command=zero-downtime-push
fi

cf $command ...
ccostino commented 6 years ago

We have too, @adborden. PR incoming! :-)

rogeruiz commented 6 years ago

Closed by #14