Skip to content

Commit

Permalink
feat: Update backend code reloading tool to use air-verse
Browse files Browse the repository at this point in the history
The backend code reloading tool has been updated to use [air-verse](github.com/air-verse/air) instead of [cosmtrek/air](https://github.com/cosmtrek/air). This change ensures that the backend will be restarted correctly when changes are made to the backend code.

```
  • Loading branch information
sixcolors committed Jun 22, 2024
1 parent 4962cc3 commit a3e13dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ To support web socket based hot reloading of the frontend, Ngix is configured to

Note: React Dev Tools require ENV `WDS_SOCKET_PORT` to be set to `8080` to work with the proxy, (see [react-app/Dockerfile.dev](react-app/Dockerfile.dev)).

The backend will be restarted when changes are made to the backend code using [air](https://github.com/cosmtrek/air).
The backend will be restarted when changes are made to the backend code using [air](github.com/air-verse/air).

Go delve remote debugger will be available at [http://localhost:2345](http://localhost:2345) (see [launch.json](.vscode/launch.json)) `Docker: Attach to Go (Delve)` config for debugging the backend in VSCode.

Expand Down
2 changes: 1 addition & 1 deletion go-fiber/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM golang:latest
WORKDIR /app

# Install git and air
RUN go install github.com/cosmtrek/air@latest && go install github.com/go-delve/delve/cmd/dlv@latest
RUN go install github.com/air-verse/air@latest && go install github.com/go-delve/delve/cmd/dlv@latest

# Add $GOPATH/bin to $PATH
ENV PATH=$PATH:/go/bin
Expand Down

0 comments on commit a3e13dd

Please sign in to comment.