Using code-server to test out frontend code? #3836
Unanswered
Blakeinstein
asked this question in
Q&A
Replies: 4 comments 13 replies
-
Hmmm...I don't think we have a hook but you might be able to add something to your settings to run a script that runs If I were to try to implement, something like:
Would that work? |
Beta Was this translation helpful? Give feedback.
7 replies
-
Quiet a lot got lost in translation haha.
Anyways, I should have elaborated better.
You see most bundlers have web sockets open to the port the dev server is
running on. So for example, the bundler that I am using... vite.. would run
the dev server at some port lets say 1234. Now, the webpage would be
viewable on app.heroku.com/proxy/1234 but accessing the web socket for hot
reloading wont be possible with this proxying... because the dev server
would try to connect to app.heroku.com:1234/proxy/1234.
I solved this by a VM approach.
skip the second thing for now since I also resolved that with the VM
approach.
Are there any extensions that can let me run custom JS code on the vscode
session, to possible communicate with a third party server?
Or should I just write bash scripts as part of the docker image.
I know this is a bit too much, and I am going way beyond the scope of the
project and I apologise for that. Its quite nice of you guys for having the
project open source!
…On Thu, Jul 29, 2021, 12:14 AM Joe Previte ***@***.***> wrote:
I got the proxy part working
awesome!
Any bundlers than can support heroku?
Hmm 🤔 I'm not sure. You mean like a bundler (like Parcel) that supports
working with Heroku? I guess I'm not sure on what you're looking for. I
thought hot reload *should* just work (haven't tested with CRA or Next).
Is it possible to run multiple code-server sessions using the same config
but seperate github repo?
Hmmm... I think you could deploy multiple code-server instances and have
them all point to the same github repo, is that what you mean?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3836 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKCCJRTTYXLA6HC6TCUD4CTT2BFZHANCNFSM5A2BCSPA>
.
|
Beta Was this translation helpful? Give feedback.
3 replies
-
I actually have an MVP that is hardcoded to use `/proxy/8081`. The project
is available here, https://github.com/Blakeinstein/codeserver-live/. I am
actually a bit busy this week, but should be able to share a video
afterwards. Meanwhile, you can test out the project if you want.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I was thinking if having an extension that gitpod uses internally, (it is open source) would help with this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to implement something like code sandbox. Is it possible to have a start command that runs on page load? Something like
npm i
. And also show a simple browser at a particular port as well?Beta Was this translation helpful? Give feedback.
All reactions