mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:51:57 +00:00
sg: add debug-env command (#25509)
To debug environment you can run `sg run debug-env` to see the computed environment.
This commit is contained in:
parent
f2a20455f8
commit
cfdb1b7b33
@ -222,6 +222,8 @@ To modify your configuration locally, you can overwrite chunks of configuration
|
||||
If an `sg.config.overwrite.yaml` file exists, its contents will be merged with the content of `sg.config.yaml`, overwriting where there are conflicts. This is useful for running custom command sets or adding environment variables
|
||||
specific to your work.
|
||||
|
||||
You can run `sg run debug-env` to see the environment variables passed `sg`'s child processes.
|
||||
|
||||
### Examples
|
||||
|
||||
#### Changing database configuration
|
||||
|
||||
@ -656,6 +656,11 @@ commands:
|
||||
- monitoring
|
||||
continueWatchOnExit: true
|
||||
|
||||
# This will execute `env`, a utility to print the process environment. Can
|
||||
# be used to debug which global vars `sg` uses.
|
||||
debug-env:
|
||||
cmd: env
|
||||
|
||||
checks:
|
||||
docker:
|
||||
cmd: docker version
|
||||
|
||||
Loading…
Reference in New Issue
Block a user