kataras / rizla

:eyes: Rizla builds, runs and monitors your Go Applications with ease. See https://github.com/kataras/iris-cli for Iris users.
MIT License
190 stars 17 forks source link

How to use rizla #20

Open JiaaZe opened 4 years ago

JiaaZe commented 4 years ago

I import rizla to my GOPATH. When I input rizla main.go in Terminal ,it reply me bash: rizla: command not found...

dmwin72015 commented 3 years ago

add your variable GOPATH to PATH in file .bashrc restart Terminal

ZYK1236 commented 3 years ago

add export PATH="/example:$PATH" to your .zshrc file if your agent is mac environment.

the example is your GOPATH path, for example:

  1. Appears after entering "go env", the GOPATH display as "/usr/xxx/go"
  2. add export PATH="/usr/xxx/go:$PATH" to your ~/.zshrc file
ichenhe commented 2 years ago

Try go install github.com/kataras/rizla insetead of go get. This command will compile and move the executable file to $GOPATH/bin which should in path system env var.