My reason to write this, was being able to have the instructions in a file: as part of git
, and just run a one word command, to start the server and start building. Since I would always forget the command, this saves me a lot of hassle, every day when setting up the dev environment. Also when running, multi threaded processes like Fiber
or Gin
servers, had problems closing properly with other solutions out there, and would use too much memory after a few restarts.
- You can use with any platform like Nodejs, Golang, Python etc.
- Watch any directory.
- Run Multi Threaded processes like Fiber / Gin / Other ...
- Skip Directories or Files.
- Super fast, as built in Golang.
- Easy installation.
- No dependencies.
Create a glive.json
file in working directory like below.
{
"watch": "./",
"command": "go run ./cmd/app1/main.go",
"skip": ["./logs", ".git", "./offProject/notes.md", "glive.json", "./docs"]
}
glive
to Run,rs
"while running" For Manually Restart,Ctrl+c
To Stop
Using the Debian Package Manager / apt / apt-get.
wget curl https://github.com/clubcleaver/glive/raw/refs/heads/main/glive.deb
sudo apt install ./glive.deb
glive
Manual Install
curl -O https://github.com/clubcleaver/glive/raw/refs/heads/main/glive
wget curl https://github.com/clubcleaver/glive/raw/refs/heads/main/glive
chmod 777 ./glive
export $PATH=$PATH:<path-to-glive-file>
glive