Skip to content

Commit

Permalink
Listen 0.0.0.0 so the servers can listen on Docker's network
Browse files Browse the repository at this point in the history
  • Loading branch information
hibariya committed Nov 17, 2020
1 parent 36f62ba commit 6b88d03
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion fixed-price-subscriptions/server/go/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func main() {
http.HandleFunc("/retrieve-upcoming-invoice", handleRetrieveUpcomingInvoice)
http.HandleFunc("/stripe-webhook", handleWebhook)

addr := "localhost:4242"
addr := "0.0.0.0:4242"
log.Printf("Listening on %s ...", addr)
log.Fatal(http.ListenAndServe(addr, nil))
}
Expand Down
2 changes: 1 addition & 1 deletion fixed-price-subscriptions/server/php/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"monolog/monolog": "^1.17"
},
"scripts": {
"start": "php -S localhost:4242 index.php"
"start": "php -S 0.0.0.0:4242 index.php"
}
}
2 changes: 1 addition & 1 deletion per-seat-subscriptions/server/go/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func main() {
http.HandleFunc("/cancel-subscription", handleCancelSubscription)
http.HandleFunc("/stripe-webhook", handleWebhook)

addr := "localhost:4242"
addr := "0.0.0.0:4242"
log.Printf("Listening on %s ...", addr)
log.Fatal(http.ListenAndServe(addr, nil))
}
Expand Down
2 changes: 1 addition & 1 deletion per-seat-subscriptions/server/php/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"monolog/monolog": "^1.17"
},
"scripts": {
"start": "php -S localhost:4242 index.php"
"start": "php -S 0.0.0.0:4242 index.php"
}
}
2 changes: 1 addition & 1 deletion usage-based-subscriptions/server/go/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func main() {
http.HandleFunc("/retrieve-upcoming-invoice", handleRetrieveUpcomingInvoice)
http.HandleFunc("/stripe-webhook", handleWebhook)

addr := "localhost:4242"
addr := "0.0.0.0:4242"
log.Printf("Listening on %s ...", addr)
log.Fatal(http.ListenAndServe(addr, nil))
}
Expand Down
2 changes: 1 addition & 1 deletion usage-based-subscriptions/server/php/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"ramsey/uuid": "^4.0"
},
"scripts": {
"start": "php -S localhost:4242 index.php"
"start": "php -S 0.0.0.0:4242 index.php"
}
}

0 comments on commit 6b88d03

Please sign in to comment.