10 Matching Annotations
- Nov 2022
-
stackoverflow.com stackoverflow.com
-
Remember there are two kinds of variable. Internal Variables and Environment Variables. PATH should be an environment variable.
In my case, I was trying to debug
which asdf
not finding asdf, in a minimal shell.I had checked
bash-5.1$ echo $PATH|grep asdf /home/tyler/.asdf/bin
but ```
The PATH environment variable
env | /bin/grep PATH
`` being empty was the key discovery here. Must have forgotten the
export`. -
All shells should tell you that your path is the same thing with BOTH of the two commands: # The PATH variable echo "$PATH" # The PATH environment variable env | /bin/grep PATH
-
- Jun 2021
-
naildrivin5.com naildrivin5.com
-
It’s easy to create bugs because the environment is a somewhat degenerate settings database.
-
- Feb 2021
-
docs.travis-ci.com docs.travis-ci.com
-
CI=true
-
-
github.com github.com
-
STATSD_SAMPLE_RATE: (default: 1.0)
It's recommended to configure this library by setting environment variables.
The thing I don't like about configuration via environment variables is that everything is limited/reduced to the string type. You can't even use simple numeric types, let alone nice rich value objects like you could if configuration were done in the native language (Ruby).
If you try to, you get:
ENV['STATSD_SAMPLE_RATE'] = 1 config/initializers/statsd.rb:8:in `[]=': no implicit conversion of Integer into String (TypeError)
-
- Jan 2021
- May 2020
-
docs.gitlab.com docs.gitlab.com
-
docs.gitlab.com docs.gitlab.com
-
Some GitLab features can behave differently for each environment. For example, you can create a secret variable to be injected only into a production environment.
-
- Dec 2019
-
github.com github.com
-
neutrino build --require dotenv/config You can then tell Neutrino to inject these environment variables in your neutrinorc: ['@neutrinojs/env', [ 'NODE_ENV', 'APPLICATION_NAME', 'LOGIN_STRATEGIES', 'TASKCLUSTER_ROOT_URL', ]],
-