Skip to content

Commit a143e1d

Browse files
authored
Update main.go
1 parent ced8eb7 commit a143e1d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

WebApp/main.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"gopkg.in/gorp.v1"
2323
)
2424

25-
var port = ":8080"
25+
var port string
2626

2727
type Book struct {
2828
PK int64 `db:"pk"`
@@ -451,7 +451,9 @@ func main() {
451451
n.Use(negroni.HandlerFunc(verifyDBConnection))
452452
n.Use(negroni.HandlerFunc(verifyUser))
453453
n.UseHandler(mux)
454-
n.Run(port)
454+
455+
port = "8080"
456+
n.Run(":" + port)
455457
}
456458

457459
func search(query string) (results []SearchResult, err error) {

0 commit comments

Comments
 (0)