使用Buildpacks
tsuru通过使用去实现使用buildpacks部署。
创建应用
首先需要创建使用平台的应用:
部署应用
已包含的Buildpacks
很多的buildpacks被缺省绑定:
- https://github.com/heroku/heroku-buildpack-nodejs.git
- https://github.com/heroku/heroku-buildpack-python.git
- https://github.com/heroku/heroku-buildpack-clojure.git
- https://github.com/heroku/heroku-buildpack-grails.git
- https://github.com/oortcloud/heroku-buildpack-meteorite.git
- https://github.com/igrigorik/heroku-buildpack-dart.git
- https://github.com/Kloadut/heroku-buildpack-static-apache.git
- https://github.com/ddollar/heroku-buildpack-multi.git
tsuru会挨个运行每个buildpack的bin/detect脚本去匹配你推送的代码。
使用自定义的Buildpack
使用自定义的buildpack,需要设置BUILDPACK_URL环境变量:
创建自己的Buildpack
查看下面的Heroku文档学习如何去创建自己的Buildpack: