ENV vars in rails console
Overview
Environment variables in GDK are set using runit
But when running gdk rails console or a rake task, these environment variables are not picked up. Would it be possible to inject the same environment variables into a console as well?
This came up in a recent MR review
Impacted categories
The following categories relate to this issue:
-
gdk-reliability - e.g. When a GDK action fails to complete. -
gdk-usability - e.g. Improvements or suggestions around how the GDK functions. -
gdk-performance - e.g. When a GDK action is slow or times out.
Steps to replicate (optional)
- Set an env var via
env.runitin the GDK root - Open a rails console in
gitlab - ENV var is nil
Proposal (optional)
Environment (optional)
- Operating system name:
<!-- output of `uname -a` command --> - Architecture:
<!-- output of `arch` command --> - The contents of your
gdk.yml(if any) - Ruby version:
<!-- output of `ruby --version` command --> - GDK version:
<!-- output of `git rev-parse --short HEAD` command -->