Skip to content

Commit f3fc2e5

Browse files
committed
# update dockerfile e port
1 parent 74e8b0f commit f3fc2e5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const API_URL = 'http://localhost:4444'; //url do app, vou add dps
1+
const API_URL = 'http://localhost:8080'; //url do app, vou add dps
22

33
export const productService = {
44
async getProducts() {

cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/gorilla/mux"
1010
)
1111

12-
const defaultPort = "4444"
12+
const defaultPort = "8080"
1313

1414
func main() {
1515
r := setupRoutes()

dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ COPY . .
55
RUN go mod download
66
RUN go build -o main cmd/main.go
77

8-
EXPOSE 4444
8+
EXPOSE 8080
99
CMD ["./main"]
1010

1111

0 commit comments

Comments
 (0)