Skip to content

Commit

Permalink
更换启动端口。
Browse files Browse the repository at this point in the history
  • Loading branch information
lanyulei committed Jul 17, 2020
1 parent a48aa75 commit f03cb47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var (

func init() {
StartCmd.PersistentFlags().StringVarP(&config, "config", "c", "config/settings.yml", "Start server with provided configuration file")
StartCmd.PersistentFlags().StringVarP(&port, "port", "p", "8000", "Tcp port server listening on")
StartCmd.PersistentFlags().StringVarP(&port, "port", "p", "8002", "Tcp port server listening on")
StartCmd.PersistentFlags().StringVarP(&mode, "mode", "m", "dev", "server mode ; eg:dev,test,prod")
}

Expand Down
10 changes: 5 additions & 5 deletions config/settings.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ settings:
ishttps: false
mode: dev
name: testApp
port: "8000"
port: "8002"
readtimeout: 1
writertimeout: 2
database:
dbtype: mysql
host: 127.0.0.1
name: ferry_admin
password: 123456
name: ferry
password: ferry@2020
port: 3306
username: root
username: ferry
jwt:
secret: ferry
timeout: 3600
log:
dir: temp/logs
dir: logs
operdb: false
ssl:
key: keystring
Expand Down

0 comments on commit f03cb47

Please sign in to comment.