When I deploy a Cloud Foundry app, it installs the buildpacks for ruby, php, javascript, python, java, go, and more.
当我部署Cloud Foundry应用程序时,它会为ruby,php,javascript,python,java,go等安装buildpack。
Why does it do this? My project only uses Java, so I assume Cloud Foundry downloads all the buildpacks for any project, regardless of the files being deployed?
为什么这样做?我的项目只使用Java,所以我假设Cloud Foundry会下载任何项目的所有buildpack,而不管部署的文件是什么?
1 个解决方案
#1
4
At that point Cloud Foundry doesn't know which buildpack to use and to figure this out, it needs to download all of them. To specify which buildpack you would like to use, add the -b
switch to your cf push
commmand. cf push <app name> -b java_buildpack
那时Cloud Foundry不知道要使用哪个buildpack,并且想出这个,它需要下载所有这些。要指定要使用的构建包,请将-b开关添加到cf push命令。 cf push
#1
4
At that point Cloud Foundry doesn't know which buildpack to use and to figure this out, it needs to download all of them. To specify which buildpack you would like to use, add the -b
switch to your cf push
commmand. cf push <app name> -b java_buildpack
那时Cloud Foundry不知道要使用哪个buildpack,并且想出这个,它需要下载所有这些。要指定要使用的构建包,请将-b开关添加到cf push命令。 cf push