Closed lorismaz closed 1 year ago
is there a flag for cuber cli to define the Cuberfile location?
No (by design). You need to cd
in the directory where the Cuberfile
is located.
the buildpack is running but fail when trying to obtain the api key from the credential files
For buildpacks errors you can report them here: https://github.com/buildpacks/pack
Or you can also report the problem to Rails for rake assets:precompile
... It should not need to know the credentials for compiling assets.
An alternative is to use your own Dockerfile
and the Cuber dockerfile
command (instead of buildpacks).
Thanks for the answers, I'll try with a Dockerfile !
Hello,
I'm trying to build a rails app that checks an API key in a config yml file (Honeybadger API key).
I set up the Cuberfile in /cuber/production/Cuberfile (btw is there a flag for cuber cli to define the Cuberfile location?) Please see my Cuberfile template attached.
When I go to /cuber/production/ and run
cuber deploy
, the buildpack is running but fail when trying to obtain the api key from the credential files:My honeybadger.yml file request the api key like so:
api_key: "<%= Rails.application.credentials.dig(:honeybadger, :key) %>"
Thanks for your help!
My Cuberfile