sleede/fab-manager

Trying to run without Docker in production - KeyError: key not found: "DEFAULT_HOST"

Closed this issue · 1 comments

Describe the bug

Hi, i'm working on the Yunohost package for Fab-Manager, and i can't upgrade it to v6.

While running

RAILS_ENV=production RACK_ENV=production bin/bundle exec rails assets:precompile

We get :

KeyError: key not found: "DEFAULT_HOST" (KeyError)
/var/www/fab-manager/config/initializers/sentry.rb:31:in `fetch'

See the full installation logs here: https://ci-apps-dev.yunohost.org/ci/job/17276

See also the installation script here: https://github.com/YunoHost-Apps/fab-manager_ynh/blob/upgrade_v6/scripts/install
and the build function here: https://github.com/YunoHost-Apps/fab-manager_ynh/blob/ca6fd6e61800ec59cabbee30aae418447a529faf/scripts/_common.sh#L33

We have the .env installed properly. I tried also to run with DEFAULT_HOST=somevalue on the command line to get it in ruby's environment, no luck.
With RAILS_ENV=development, it works fine. So I can't get my head around the issue i'm having with the production run…

Do you have any idea ? :D

Server (please complete the following information):

  • OS: Debian 11 and 12
  • Fab-manager version : 6.3.22

OK, found the issue. Variables weren't exported…