question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Environment variables support in configuration file

See original GitHub issue

Is your feature request related to a problem? Cannot redirect storage and plugins folders to OS specific path (Windows OS, %ALLUSERSPROFILE%)

Describe the solution you’d like Ability to specify environment variable link in path options (storage, plugins etc.). Will be glad to see any variable format (%var%, $(var), %(var) etc)

Example:

# path to a directory with all packages
storage: %environment_variable%/storage
# path to a directory with plugins to include
plugins: %environment_variable%/plugins

Describe alternatives you’ve considered Alternatives are:

  • Respect working directory (merge path from configuration file with current directory rather than configuration file location)
  • Pass configuration keys via command line verdaccio --storage <value> or verdaccio --option storage=<value>

Additional context Seems feature related to another issues:

Thank you a lot for great solution!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
weyertcommented, Jan 23, 2020

Thank you, for bringing this my attention! Loving it 😃 Can’t wait to get it merged

1reaction
juanpicadocommented, Jan 23, 2020

@weyert then you need this I guess https://github.com/verdaccio/monorepo/pull/315 , feel free to drop your thoughts.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use environment variables in the configuration - Elastic
You can use environment variable references in the config file to set values that need to be configurable during deployment. To do this,...
Read more >
Application configs: files or environment variables? Actually ...
Environment variables are set by who's responsible for the deployment environment : by developer on local machines, by SRE/Administrator/DevOps ...
Read more >
Using variables in configuration files - IBM
Use variable element in the configuration. Use process environment variables in the configuration.
Read more >
Configuration Files, Environment Variables, and Command ...
The two choices are configuration files and environment variables. We can consider environment variables as easier to edit than ...
Read more >
Want to use env variables in that config file? Well, you can ...
Meet the envsubst command​​ With envsubst we can embed the value of environment variables inside a string that comes from the standard input....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found