Skip to content

Commit

Permalink
refactor: last touches to env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Jun 8, 2024
1 parent 0c5248b commit 72c1eba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .vscode/settings.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"-v"
],
"go.testEnvVars": {
"SCRAPPY_PLAYER_URL": "**********", // Not required for dev env if u use "DEVENV_MOCK_API": "true"
"SCRAPPY_BASE_URL": "**********", // Not required for dev env if u use "DEVENV_MOCK_API": "true"
"SCRAPPY_PLAYER_URL": "**********", // Not required for dev env if u use "DEV_ENV_MOCK_API": "true"
"SCRAPPY_BASE_URL": "**********", // Not required for dev env if u use "DEV_ENV_MOCK_API": "true"
// "DARK_TEST_REGENERATE": "false",
"DEV_ENV": "true",
"DEV_ENV_MOCK_API": "true",
Expand All @@ -15,8 +15,8 @@
"go.testTimeout": "30000s",
"editor.formatOnSave": true,
"terminal.integrated.env.linux": {
"SCRAPPY_PLAYER_URL": "**********", // Not required for dev env if u use "DEVENV_MOCK_API": "true"
"SCRAPPY_BASE_URL": "**********", // Not required for dev env if u use "DEVENV_MOCK_API": "true"
"SCRAPPY_PLAYER_URL": "**********", // Not required for dev env if u use "DEV_ENV_MOCK_API": "true"
"SCRAPPY_BASE_URL": "**********", // Not required for dev env if u use "DEV_ENV_MOCK_API": "true"
// "DARK_TEST_REGENERATE": "false",
"DEV_ENV": "true",
"DEV_ENV_MOCK_API": "true",
Expand Down
4 changes: 2 additions & 2 deletions app/settings/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ func init() {

if !Env.DevEnvMockApi {
if Env.ScrappyBaseUrl == "" {
logus.Log.Panic("DEVENV_MOCK_API=false, Expected SCRAPPY_BASE_URL env var to be defined")
logus.Log.Panic("DevEnvMockApi=false, Expected SCRAPPY_BASE_URL env var to be defined")
}
if Env.ScrappyPlayerUrl == "" {
logus.Log.Panic("DEVENV_MOCK_API=false, Expected SCRAPPY_PLAYER_URL env var to be defined")
logus.Log.Panic("DevEnvMockApi=false, Expected SCRAPPY_PLAYER_URL env var to be defined")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tf/modules/darkbot/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ locals {
CONSOLER_PREFIX = "${var.consoler_prefix}"
SCRAPPY_LOOP_DELAY = "60"
VIEWER_LOOP_DELAY = "10"
DEVENV_MOCK_API = "false"
DEV_ENV_MOCK_API = "false"
DARKBOT_LOG_LEVEL = "${var.debug ? "DEBUG" : "WARN"}"
}
}

0 comments on commit 72c1eba

Please sign in to comment.