Skip to content

Instantly share code, notes, and snippets.

@haifahrul
Created February 3, 2020 09:10
Show Gist options
  • Save haifahrul/3ea79712712e4fc0f5fa7e4ff1d96e52 to your computer and use it in GitHub Desktop.
Save haifahrul/3ea79712712e4fc0f5fa7e4ff1d96e52 to your computer and use it in GitHub Desktop.
Makefile for serve Air live reload for Go Apps
start:
echo 'YOUR_PASS_SUDO' | sudo -kS kill -9 `lsof -t -i:"$(SERVICES_GRPC_PORT)"` | godotenv go run main.go
serve:
air -c .air.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment