Skip to content

Commit

Permalink
update deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouop0 committed Aug 6, 2024
1 parent 9d91d3a commit 11f2647
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ RPC_RATE_BURST=5
FROM_BLOCK_NUMBER=6034337
FROM_BLOCK_HASH=0xafc3e42c5899591501d29649ffef0bfdec68f8d77e6d44ee00ef88cfb1a2f163
DISPUTE_GAME_PROXY_CONTRACT=0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1
API_PORT=8080
1 change: 1 addition & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ RPC_RATE_BURST=5
FROM_BLOCK_NUMBER=6034337
FROM_BLOCK_HASH=0xafc3e42c5899591501d29649ffef0bfdec68f8d77e6d44ee00ef88cfb1a2f163
DISPUTE_GAME_PROXY_CONTRACT=0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1
API_PORT=8080
1 change: 1 addition & 0 deletions internal/types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type Config struct {
FromBlockNumber int64 `env:"FROM_BLOCK_NUMBER" envDefault:"6034337"`
FromBlockHash string `env:"FROM_BLOCK_HASH" envDefault:"0xafc3e42c5899591501d29649ffef0bfdec68f8d77e6d44ee00ef88cfb1a2f163"`
DisputeGameProxyContract string `env:"DISPUTE_GAME_PROXY_CONTRACT" envDefault:"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"`
APIPort string `env:"API_PORT" envDefault:"8088"`
}

var config *Config
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func main() {

router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))

err := router.Run()
err := router.Run(":" + cfg.APIPort)
if err != nil {
log.Errorf("start error %s", err)
return
Expand Down

0 comments on commit 11f2647

Please sign in to comment.