Note: This guide uses the Cloud Foundry CLI version 6. The instructions below are not compatible with any cf version < 6. Click here to read how to install the cf CLI v6.
To run application written in any language or framework anynines uses a well known concept called buildpacks. Buildpacks transform your application into a runnable package. This includes installing all dependencies for your applications, for example. This guide covers how to find and use the right buildpack for your application.
Using a default buildpack
If your application is written Java, Node.js or in Ruby you don’t have to specify a buildpack. Just type ‘cf push’ and anynines will use the right buildpack for your application.
Note: Ruby on Rails 4 will not work with the default buildpack yet. In this case you have to specify a buildpack (see below).
Specifying a buildpack
To run applications in other languages or frameworks you add an option to the ‘cf push’ command. If you’d like to deploy an application written in go, you will have to specify the go buildpack when pushing the application:
cf push -b https://github.com/michaljemala/cloudfoundry-buildpack-go.git
If you are not familiar with the overall deployment process on anynines, please refer to our Getting Started guide.
Find the right buildpack
Since buildpacks are an Open Source concept there are many of them out there and you can just use Google to find one that fits. Here is a list of buildpacks we know to run smoothly on anynines:
For Ruby 2.0 and Rails 4 you can use this URL as buildpack: https://github.com/heroku/heroku-buildpack-ruby.git
Run PHP applications using this URL as buildpack:
Run go applications using this URL as buildpack:
Run your Python applications using this URL as buildpack:
Please sign in to leave a comment.