Skip to content

Commit

Permalink
chore:Makefile の改良
Browse files Browse the repository at this point in the history
  • Loading branch information
kokoichi206 committed May 25, 2023
1 parent 727b5c2 commit e4e0ce6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ DB_URL=postgresql://ubuntu:sakamichi@localhost:5432/sakamichi?sslmode=disable
server:
go run main.go


deploy: ## ラズパイ上へのデプロイ
go build -o sakamichi-api-bff main.go
mv sakamichi-api-bff /home/ubuntu/deploy/
sudo systemctl restart sakamichi-api-bff.service

migrateup:
migrate -path migrations -database "$(DB_URL)" -verbose up

Expand Down

0 comments on commit e4e0ce6

Please sign in to comment.