-
Notifications
You must be signed in to change notification settings - Fork 1.3k
trying to get hot loader working #435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @catmando , on first sight your websocket URL looks bogus: |
that is just url that the page is pointing to with a different port. what would you expect it too look like? |
FYI just double checked and works fine on my local box... i.e. I load page |
The issues here is that I did not figure out how configure this in the hotloader, yet.. |
Btw, you can configure
for instance |
thanks I'll figure it out... probably have to patch hotloader, but I can do that. |
Yes, looks like that would be necessary. Currently Gitpod does not support incoming traffic on other ports than 443 - thought that might change in the future. 🙂 The URL to insert there can be generated using
|
thanks for the help... I can get the hot-loader to work, but after about 90 seconds it closes the connection. Not sure why. Again everything is posted here: https://github.com/hyperstack-org/todo-compare/tree/gitpod and the hotloader "patch" is in app/hyperstack/components/hyper_component.rb |
okay I starting pinging the websocket connection (server to client) every 10 seconds. That seems to keep it alive. |
The only small thing is that when I run the hotloader using a foreman proc file after the initial hotloader message, non of the remaining messages come up.
after the initial hot loader message (once puma starts?) no more hot messages come up. |
I tried your example https://github.com/hyperstack-org/todo-compare/tree/gitpod and I see two websocket connection:
I never did ruby but will try to play around a bit. |
It seems to be an issue with I noticed that the initial install takes some time: Gitpod has a GitHub-App that allows to "prebuild" workspaces (docs). This basically checks out your repo on each push and executes the |
Yes I configured hot loader to ping every 10 seconds. This seems to keep the connection alive. The prebuild looks great can't wait to to try it. |
And the pre-build works great. Thanks for the tip! |
how i can install rails on gitpod? i am lost |
Hi @guilhermeariza, to install Rails in Gitpod, it should be enough to just run |
https://hyperstack.org has a built in hotloader that sets up a push notification from a task running on server, to the client.
I cant get this to work on gitpod.
after a minute or so the client throws this error:
WebSocket connection to 'wss://5000-d229dba3-3441-4622-a288-3a4990c9cc1b.ws-us0.gitpod.io:25222/' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
Here is my .gitpod.yml file:
Any help is appreciated. The repo is here:
https://github.com/hyperstack-org/todo-compare
use the ``gitpod`branchfor simplicity I am running in two terminal windows instead of using foreman
terminal 1:
bundle exec rails s -b 0.0.0.0 -p 5000 terminal 2:
bundle exec hyperstack-hotloader -p 25222 -d app/hyperstack/`if you change a file in the app/hyperstack directoy you will see it is noticed but no message goes to the client.
The funny thing this safe app uses Rails action-cable, and that works fine!
The text was updated successfully, but these errors were encountered: