cookbook 'application_buildpack', '= 0.0.2', :supermarket
The application_buildpack cookbook has been deprecated
The application_buildpack cookbook has been deprecated and is no longer being maintained by its authors. Use of the application_buildpack cookbook is no longer recommended. You may find that the application cookbook is a suitable alternative.
application_buildpack (7) Versions 0.0.2 Follow0
deploys and configures apps using heroku buildpacks
cookbook 'application_buildpack', '= 0.0.2'
knife cookbook site install application_buildpack
knife cookbook site download application_buildpack
This cookbook is designed to be able to deploy applications using heroku buildpacks.
The following buildpacks are tested and supported:
Note that this cookbook is based on the
application cookbook; you will find general documentation in that cookbook.
Chef 11.0.0 or higher required (for Chef environment use).
The following Opscode cookbooks are dependencies:
The LWRP provided by this cookbook is not meant to be used by itself; make sure you are familiar with the
application cookbook before proceeding.
compile sub-resource LWRP deals with compiling an app using a buildpack.
buildpack: The buildpack to be used. Will be used to install dependencies and set the buildpack repository. Default:
buildpack_repository: A custom buildpack repository that should be used instead. Default:
buildpack_revision: The revision of the buildpack to be used. Default:
buildpack_environmet: Additional ENV variables to be passed to the buidlpack compile script. Default:
scale sub-resource LWRP deals with configuring monit to start processes described in your Procfile.
You can pass any attribute combination to
scale the name of the attribute will be matched to a process describe in your Procfile.
scale do # scale with one process web 1 # scale with multiple processes # PROCESS_NUM env variable will indicate the processes id worker 4 # send a custom signal on reload to gracefully stop the process guard 1, reload: 'USR1' end
A sample recipe that deploy a Ruby app:
application 'example' do path '/srv/example' owner 'ubuntu' group 'ubuntu' packages ['git'] repository 'https://github.com/heroku/ruby-rails-sample.git' environment 'PORT' => 8000 compile do buildpack :ruby end scale do web 1 end end
A sample recipe that deploys an scala app using a custom buildpack
application 'example' do path '/srv/example' owner 'ubuntu' group 'ubuntu' packages ['git'] repository 'https://github.com/heroku/scala-sample.git' compile do buildpack_repository 'https://github.com/heroku/heroku-buildpack-scala.git' end scale do web 1 end end
- If the buildpack fails to compile because some packages are missing, just define the packages in your
- If the buildpack fails to compile due to a missing
/appdirectory then the buidlpack uses hardcoded heroku paths. Create an issue on the repository or fork it.
- progrium for https://github.com/progrium/buildstep
- Granicus for https://github.com/Granicus/chef-application_procfile
|application ~> 4.0|
|monit >= 0.0.0|
There are no cookbooks that are contingent upon this one.