Re: Application failed to stage with Error: 'No such file or directory [STG/0] ERR /usr/bin/env: ruby'


Amit Kumar Gupta
 

Your buildpack should have three executables in the bin directory:
"detect", "compile", and "release". If the code in those executables is
meant to be ruby, you'll need the appropriate shebang line, like this:

https://github.com/cloudfoundry/ruby-buildpack/blob/45b22922827c02e6b7af0650cf1b02600455d3cd/bin/compile#L1

Does yours look different?

Amit

On Tue, Feb 9, 2016 at 5:00 AM, nitin padalia <padalia.nitin(a)gmail.com>
wrote:

Hi,

I am trying to deploy my app on cloudfoundry using a custom offline
buildpack. Buildpack creation goes fine but when I push an app referring
that buildpack application fails to stage at compilation step with below
error:
No such file or directory [STG/0] ERR /usr/bin/env: ruby

Any pointer, what I am missing here?

Thanks!
-Nitin

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.