I am creating my SST application with Gitpod (Clou...
# help
a
I am creating my SST application with Gitpod (Cloud Developer Enviroment) and I am working to access the 'https://console.serverless-stack.com/'
I'm not sure what port this application is running on and I'm not sure if its binding to 0.0.0.0. How would I know here? If I wanted to find it in my linux processes what would I type? eg. ps aux | grep name-of-processs
I'm bust @Frank or SST folks I'll need some help here
I'm just going to have to start over and use my local developer enviroment
It would good if SST can figure out how to work with Gitpods limitations because it does make it much easier to onboard folks onto the technology
f
Hey @Andrew Brown, I’ve seen ppl got it to work using local VSCode with gitpod. Does that work for you?
a
I tried locally but I didn’t have much luck. The port mapping with local VSCode and Gitpod is different, and I’m not sure how it works.
k
@Andrew Brown While I haven't tried it, could you test if forwarding the following ports works for you? I do the same in VS Code remote SSH and feel it should be similar for Gitpod according to their doc - https://www.gitpod.io/docs/config-ports
t
we probably need to do some work to support this, sst console is hard coded to look for 127.0.0.1:port - unless gitpod has some tunneling thing you can run (unfamiliar with it) I don't k now if it'll work right now
k
https://www.gitpod.io/blog/local-app makes me fell it could perhaps work with their redirector (as they could expose something from gitpod to LH:5000) , but haven't tried it
@thdxr supporting some kind of defined domain alternative would perhaps be nice though
f
I got the Gitpod local companion app to work.. pretty straight forward (following command assumes Mac w/ Intel chips):
Copy code
$ curl -OL <https://gitpod.io/static/bin/gitpod-local-companion-darwin>
$ chmod +x ./gitpod-local-companion-darwin
$ ./gitpod-local-companion-darwin
After that I’m able to go to console.serverless-stack.com and connect to the
sst start
process running inside my gitpod.
^ Added the steps to the doc here
@Andrew Brown just saw ur GH issue.. i can confirm these 2 ports are open in my pod
The requests in the Console are made to
localhost:12557
And I can see the tunnel is sending stuff to the Pod
a
Today in the Gitpod discord someone pointed me to this https://docs.serverless-stack.com/console#working-with-gitpod
So I’ll give a go
I got a viral infection yesterday so even if I wanted to record I wouldn’t have had much luck
f
hope you get well soon man!
btw, i literally wrote up that doc after getting gitpod local companion app to work (shared above 👆)
🤓
a
Check that out
Nice
Rock and roll!