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

Add support for first-time deployments #14

Closed ccostino closed 6 years ago

ccostino commented 6 years ago

Implements #8

This changeset adds support to the deploy script for first-time deployments. Previously, we were assuming an app was already deployed and performing the zero-downtime-push command of the autopilot plugin. However, this will fail in the event that the app does not already exist, so this change defaults to performing a regular push command in the event the app is not already deployed.

h/t to @adborden for the suggested logic!