Open JorgeGarciaIrazabal opened 6 years ago
Did you manage to work with Realize and Delve?
No, I had to create another server in a different Port to be able to debug. But of course without the reload feature :(
Ok thanks for your reply.
Realize doesn't works with Go mod (Go@v1.11). Waiting to see if it evolves, I'll do with modd or reflex.
No, I had to create another server in a different Port to be able to debug. But of course without the reload feature :(
Hey can you help me understand what you meant by create another server? In realize.yml? Would be helpful if you can throw some light on this.
I am trying to do docker-compose up debug
and in the command section of this service, i have "realize start -n='app-debug' "
I get this error project not found
Hey! I was success when I built a delve inside Dockerfile.
You should do this
Dockerfile
RUN go get -u github.com/go-delve/delve/cmd/dlv \
&& go build -o /go/bin/dlv github.com/go-delve/delve/cmd/dlv
.realize.yaml
schema:
name: api
path: .
commands:
build:
status: true
method: GO111MODULE=on GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o api ./cmd/api
run:
status: true
method: /go/bin/dlv
args:
Remember to security_opt option in docker-compose.yml.
docker-compose.yml
security_opt:
- seccomp:unconfined
DLV is leaving app behind on restart :(
Is there a way to configure the
realize.yaml
to run with Delve debugger? (more info about the debugger here )I tried this in the realize.yaml:
but it didn't work throwing this error:
project not found