Fork me on GitHub
#portal
<
2024-07-18
>
Stephan Renatus19:07:38

I’ve had a chance to put portal into a docker file today, to add some visibility into what’s going on in a demo setup (non-clojure whatsoever). For that use case, is it possible to suppress the error on portal.api/open? I don’t want to open anything, since it’s running in a container, and I rely on the user browsing to http://127.0.0.1:5678 themselves…. the https://github.com/StyraInc/opa-sdk-demos/pull/11/files#diff-b101f1873adeb531c8e7308cf6731ea325f33e20788504a3a521c4c37d274855 is here.

1
seancorfield19:07:09

Use portal.api/start instead of portal.api/open

Stephan Renatus19:07:28

that’s it? 😮

seancorfield19:07:49

We do this at work for one of our processes (in dev, QA, and production), along with an nREPL server, so we can connect VS Code over a VPN to production and have Portal open inside VS Code connected to the remote server.

Stephan Renatus19:07:31

it works beautifully