You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
Adds `air` so that the go server hot reloads on any changes to the
server code.
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .mise-tasks/start/server.sh
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,10 @@
3
3
#MISE dir="{{ config_root }}/server"
4
4
#MISE description="Start up the API server"
5
5
6
-
GIT_SHA=$(git rev-parse HEAD)
7
-
8
6
CONFIG_ARGS=()
9
7
if [ -f"../config.local.toml" ];then
10
8
CONFIG_ARGS=(--config-file ../config.local.toml)
11
9
fi
12
10
13
-
go run -ldflags="-X github.com/speakeasy-api/gram/server/cmd/gram.GitSHA=${GIT_SHA} -X goa.design/clue/health.Version=${GIT_SHA}" main.go start "${CONFIG_ARGS[@]}""$@"
11
+
# Use air for hot reload - args after -- are passed to the binary
0 commit comments