Pushing an Application with Multiple Buildpacks

Page last updated:

This topic describes how developers can push an application with multiple buildpacks.

For more information about pushing applications to Cloud Foundry, see the Deploy an Application topic.

Specifying Buildpacks with the cf CLI

To push an application with multiple buildpacks using the Cloud Foundry Command Line Interface (cf CLI), perform the following procedure:

  1. Run the following command to ensure that you are using the cf CLI v6.38 or later:
    $ cf version
    
    For more information about upgrading the cf CLI, see Installing the cf CLI.
  2. Push the application with the binary buildpack with the --no-start flag:
    $ cf push YOUR-APP --no-start -b binary_buildpack
    This command pushes the application but does not start it.
  3. Upgrade the application to multiple buildpacks, and specify the buildpacks:
    $ cf push YOUR-APP -b BUILDPACK-NAME-1 -b BUILDPACK-NAME-2
    
    This command changes the buildpack and starts the application. To see a list of available buildpacks, run cf buildpacks.

For more information about using the cf CLI, see the Cloud Foundry Command Line Interface topic.

Create a pull request or raise an issue on the source for this page in GitHub