lime
is a simple command line utility for live-reloading Go applications.
Just run lime
in your app directory and your web app will be served with
lime
as a proxy. lime
will automatically recompile your code when it
detects a change. Your app will be restarted the next time it receives an
HTTP request.
lime
adheres to the "silence is golden" principle, so it will only complain
if there was a compiler error or if you succesfully compile after an error.
go get github.com/kaneshin/lime
Make sure that lime
was installed correctly:
lime -h
cd /path/to/app
lime
lime -bin=/tmp/bin -ignore-pattern="(\\.git)" -path=./app -immediate=true ./app -version
option | description |
---|---|
port | port for the proxy server |
app-port | port for the Go web server |
bin | locates built binary |
ignore-pattern | pattern to ignore |
build-pattern | pattern to build |
run-pattern | pattern to run |
path, -t "." | watch directory |
immediate, -i | run the server immediately after it's built |
godep, -g | use godep when building |
Shintaro Kaneko kaneshin0120@gmail.com