cloudfoundry / staticfile-buildpack

Deploy static HTML/JS/CSS apps to Cloud Foundry
Apache License 2.0
201 stars 325 forks source link

Ruby is not available in cflinuxfs4 #359

Closed ryanmoran closed 1 year ago

ryanmoran commented 1 year ago

The buildpack writes a templated nginx.conf file to disk during the build phase. This template contains ERB statements to read in environment variables. The buildpack also includes a start script that invokes erb to write out the results of the template before the application is started. With Ruby being removed from the cflinuxfs4 stack, the buildpack can no longer perform the templating operation and results in built applications that will not run.

The buildpack will need to either bring along its own Ruby or be rewritten to not rely upon an installed Ruby for these operations.

sophiewigmore commented 1 year ago

Resolved by PR linked above, and released in v1.6.1 of the buildpack.