mirror of
https://github.com/bitvora/wot-relay.git
synced 2025-06-23 16:05:35 +00:00
don't fail when a .env
file is not present
still try to read it but let people use other ways to set up their environment variables.
This commit is contained in:
parent
060fd68c85
commit
e38dcc71ba
5
main.go
5
main.go
@ -119,10 +119,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func LoadConfig() Config {
|
func LoadConfig() Config {
|
||||||
err := godotenv.Load(".env")
|
godotenv.Load(".env")
|
||||||
if err != nil {
|
|
||||||
log.Fatalf("Error loading .env file")
|
|
||||||
}
|
|
||||||
|
|
||||||
config := Config{
|
config := Config{
|
||||||
RelayName: getEnv("RELAY_NAME"),
|
RelayName: getEnv("RELAY_NAME"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user