Search code examples
cloud-foundrybuildpack

Relate application to new buildpack


I've created a new buildpack for testing, and I want my application to use this build pack. Previously, I put a reference to the custom build pack like the following:

cf push my_app -b https://github.com/cloudfoundry/buildpack-nodejs.git

However, my buildpack was created locally. What are the steps I should take to use this new buildpack?


Solution

  • You can upload your custom buildpack from your local file system. Use the cf-create-buildpack command, and for the path argument supply the local directory where your created buildpack lives. Alternatively, you can zip it up and provide the zip file as an argument.

    Documentation for this feature can be found here: http://docs.cloudfoundry.org/adminguide/buildpacks.html