Skip to content

Commit e4ccb4f

Browse files
committed
make production
1 parent c6f1b56 commit e4ccb4f

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,19 @@ test::
77
go test -count=1 -cover ./...
88

99
staging::
10-
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/bridge-amd64
11-
rsync -ravz build/ stage-discovery-4:bridgerton
10+
mkdir -p build/staging
11+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/staging/bridge-amd64
12+
rsync -ravz build/staging/ stage-discovery-4:bridgerton
1213
ssh stage-discovery-4 -t 'cd bridgerton && docker compose up -d --build && docker compose restart bridge'
1314
curl 'https://bridgerton.staging.audius.co'
1415

16+
production::
17+
mkdir -p build/production
18+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/production/bridge-amd64
19+
rsync -ravz build/production/ prod-discovery-4:bridgerton
20+
ssh prod-discovery-4 -t 'cd bridgerton && docker compose up -d --build && docker compose restart bridge'
21+
curl 'https://bridgerton.audius.co'
22+
1523
psql::
1624
docker compose exec db psql -U postgres
1725

0 commit comments

Comments
 (0)