dice icon indicating copy to clipboard operation
dice copied to clipboard

Support for live reload

Open AshwinKul28 opened this issue 1 year ago • 2 comments

Via air package hot reload can be possible on different files such as .go, .tpl, .tmpl, .yaml.

Air package can be installed in many different ways mentioned here: https://github.com/air-verse/air

Best way if you're on go 1.22+ go install github.com/air-verse/air@latest

Or

# binary will be $(go env GOPATH)/bin/air
curl -sSfL https://raw.githubusercontent.com/air-verse/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin

AshwinKul28 avatar Aug 04 '24 06:08 AshwinKul28

Please include instructions to use the hot reload feature in the README. Let's try to keep it as simple as possible to run the dev server (ideally a single command)

JyotinderSingh avatar Aug 04 '24 06:08 JyotinderSingh

Added steps to install and run using the Air package. And yes once it's installed on the system, it's just a single-word command air in the desired directory.

$ git clone https://github.com/dicedb/dice
$ cd dice
$ air

AshwinKul28 avatar Aug 04 '24 06:08 AshwinKul28

Requested changes are completed. Please check @JyotinderSingh thanks for the suggestions.

AshwinKul28 avatar Aug 04 '24 15:08 AshwinKul28