Skip to content

Commit

Permalink
Merge pull request #767 from maticnetwork/vcastellm/pos-133-deploy-he…
Browse files Browse the repository at this point in the history
…imdall-v030-binary

Vcastellm/pos 133 deploy heimdall v030 binary
  • Loading branch information
vcastellm authored Feb 2, 2022
2 parents b4780cd + 75d9714 commit 018e452
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 25 deletions.
9 changes: 0 additions & 9 deletions builder/files/heimdalld-bridge.service

This file was deleted.

13 changes: 0 additions & 13 deletions builder/files/heimdalld-rest-server.service

This file was deleted.

2 changes: 1 addition & 1 deletion builder/files/heimdalld.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Restart=on-failure
RestartSec=5s
WorkingDirectory=/usr/local/bin
ExecStart=/usr/local/bin/heimdalld start --home /var/lib/heimdall
ExecStart=/usr/local/bin/heimdalld start --home /var/lib/heimdall --bridge --rest-server
Type=simple
User=root
[Install]
Expand Down
4 changes: 2 additions & 2 deletions helper/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ func InitHeimdallConfigWith(homeDir string, heimdallConfigFileFromFLag string) {
heimdallViper := viper.New()
heimdallViper.SetEnvPrefix("HEIMDALL")
heimdallViper.AutomaticEnv()
if heimdallConfigFilePath == "" {
if heimdallConfigFileFromFLag == "" {
heimdallViper.SetConfigName("heimdall-config") // name of config file (without extension)
heimdallViper.AddConfigPath(configDir) // call multiple times to add many search paths
} else {
heimdallViper.SetConfigFile(heimdallConfigFilePath) // set config file explicitly
heimdallViper.SetConfigFile(heimdallConfigFileFromFLag) // set config file explicitly
}

err := heimdallViper.ReadInConfig()
Expand Down

0 comments on commit 018e452

Please sign in to comment.