Skip to content

Commit

Permalink
read dtconfig.json file from ./serverless_function_source_code folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Bataran committed Dec 18, 2023
1 parent fe1d3a6 commit e1cd683
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@

# Go workspace file
go.work

# IDE miscellaneous
.idea/
2 changes: 1 addition & 1 deletion core/configuration/dt_config_file_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type jsonConfigFileReader struct {
// ReadConfigFromFile looks for a config file "dtconfig.json" in the current directory and attempts to parse it.
// Returns an error if the file can't be read or the parsing fails.
func (j *jsonConfigFileReader) readConfigFromFile() (fileConfig, error) {
return j.readConfigFromFileByPath("./dtconfig.json")
return j.readConfigFromFileByPath("./serverless_function_source_code/dtconfig.json")
}

func (j *jsonConfigFileReader) readConfigFromFileByPath(filePath string) (fileConfig, error) {
Expand Down

0 comments on commit e1cd683

Please sign in to comment.