I want to write a web application with go language.
When in run:
go run myscript.go
It works fine, i have worked with go "net/http" module Here is what i've done in my go script:
http.ListenAndServe(":8081", nil)
I want now to work with nginx. I have read i should put nginx in proxy mode. That means when nginx receive an http request on 80 http port, it will proxy it do 8081 port.
How can i automatically lanuch and relaunch "go run" process ?