This article is about CodeShip Basic.

Deploy To CloudFoundry

You will need about one minute to read this article.

As for getting started with Cloud Foundry on CodeShip, start by getting your application to deploy from your local machine. Once this is done, you need to add the following environment variables to your project settings.

# CF_API Endpoints
# Pivotal Labs:

Then create a new script based deployment and paste the following commands.

cf6 api "${CF_API}"
cf6 auth "${CF_USER}" "${CF_PASSWORD}"
cf6 target -o "${CF_ORG}" -s "${CF_SPACE}"
cf6 push "${CF_APPLICATION}"

This will deploy your application on each push to the specific branch you configured the deployment for.

Need more help?

Contact our support team or post on Stack Overflow using the tag #codeship. Did you check the status page and changelog?

There are also several code examples and sample projects available for you to get started with.

Article not helpful?

Does this article need improvement? If so, please send feedback or submit a pull request!