unable to push NGINX build pack application
Can you try the cf push and inclue the “-v” option:
// Make sure you are in the dir
cd ctsNginxTest
// Then push
cf push -v ctsNginxTest -b https://github.com/cloudfoundry/nginx-buildpack.git
This will print all the web requests being made by the CLI.
One part is the resource match and should look like this:
Comparing local files to remote cache...
REQUEST: [2019-01-17T17:11:31Z]
PUT /v2/resource_match HTTP/1.1
Host: api.run.pivotal.io
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: cf/6.42.0+0cba12168.2019-01-10 (go1.11.4; amd64 darwin)
[
{
"fn": "buildpack.yml",
"mode": "755",
"sha1": "ae84aede060edcce341b2aef51535e4b2bda1985",
"size": 28
},
{
"fn": "mime.types",
"mode": "755",
"sha1": "2a2f6762039875bf955adc5aae413da9d7102e72",
"size": 2156
},
{
"fn": "nginx.conf",
"mode": "755",
"sha1": "ad1f7fd91f0a31976b21c55628fb88dcd4f05eca",
"size": 564
},
{
"fn": "public/index.html",
"mode": "755",
"sha1": "94b59f05b375752dd5aabe41fd9f947483c80a68",
"size": 908
}
]
You want to make sure it’s referencing all the files being uploaded, especially “nginx.conf”
Also make sure you are on the latest version of the CF CLI:
Read more here: Source link
