cloudfoundry - Ruby/Sinatra app not automatically detected (CF v2 cfapps.io) -
i getting cfoundry::stagingerror: 170001: staging error: no available stagers
error when deploying cf v2:
$ git clone https://github.com/svaiyapu/cf-env.git $ cd cf-env $ bundle $ cf push name> cf-env instances> 1 custom startup command> 1: 64m 2: 128m 3: 256m 4: 512m 5: 1g memory limit> 2 creating cf-env... ok 1: cf-env 2: none subdomain> 1 1: cfapps.io 2: none domain> 1 creating route cf-env.cfapps.io... ok binding cf-env.cfapps.io cf-env... ok create services application?> n save configuration?> y saving manifest.yml... ok uploading cf-env... ok starting cf-env... failed cfoundry::stagingerror: 170001: staging error: no available stagers
i thought v2 didn't have stagers anymore.
also, why didn't auto-detect ruby/sinatra app rather ask me command run?
your cf instance seems older current head. release/version using? may version still has runtime support. latest instance, commands worked fine , staging succeeded. need add 'config.ru' (rackup file) start instances. start-command-auto-detection seems removed when build pack introduced.
this classic sinatra applications:
require './env' run sinatra::application
you can find sample rackup file modular applications @ official page (http://docs.cloudfoundry.com/docs/using/deploying-apps/ruby/sinatra-getting-started.html).
Comments
Post a Comment