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.

Add environment variable support for existing runtime flags

See original GitHub issue

It was brought up in Discord by @PhilsLab that we should allow environment variables to be more easily configured in things like Docker containers.

This is really simple, and already supported by the library used, we just need to figure out appropriate names.

https://oclif.io/docs/flags is the documentation for the flags library, the key feature being env.

We’d just need to add that to each of the flags in https://github.com/codercom/code-server/blob/master/packages/server/src/cli.ts#L20 like the following:

host: flags.string({ char: "h", default: "0.0.0.0", env: "HOST" }),

Thoughts are appreciated on this 😃.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
Omerylcommented, Mar 14, 2019

@aslafy-z I have a PR I’m going to submit tonight, I just had other stuff come up. Have to finish my workday first 😃.

1reaction
aslafy-zcommented, Mar 14, 2019

I’d love to see this land as I’m building a Helm Chart for code-server. It would consistently help setting settings and secrets.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add environment variable support for existing runtime flags #108
I'd love to see this land as I'm building a Helm Chart for code-server . It would consistently help setting settings and secrets....
Read more >
Using Environment Variables | Cloud Functions Documentation
Updating runtime environment variables · Open the Functions Overview page in the Google Cloud console: · Click an existing function to go to...
Read more >
Environment variables to configure the AWS CLI
Environment variables provide another way to specify configuration options and credentials, and can be useful for scripting or temporarily setting a named ...
Read more >
Use multiple environments in ASP.NET Core | Microsoft Learn
Use multiple environments in ASP.NET Core · Environments · Set the environment by setting an environment variable · Set the environment in code....
Read more >
How To Set Environment Variables - Twilio
Learn how to set up environment variables in Linux, Windows, ... The environment variable is available to all processes started by the user, ......
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