-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Gitpod doesn't work well with jekyll #1553
Comments
This is a problem on Jekyll's end for forcibly using localhost instead of the dynamic public address |
@RDIL Possible i guess, what do you propose then? |
cc @ChristinFrohne @Uniminin @htes9 |
Maybe you’ve already tried this, but Jekyll accepts a bind param eg
That should listen on all interfaces. |
@qnm Already tried.. The host can only point to localhost it seems even when i parsed an IPv4 of the workspace to it. |
I don't see how this could be solved in the frontend. As long as the preview is running as an iframe (webview), we would need to intercept the requests to localhost which is not possible. FWIW I think patching the config in a gitpod config is not too bad either, but for instance the livereload would not work that way. |
heads-up: activity in jekyll/jekyll#8229 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
Using
JEKYLL_ENV=development bundle exec jekyll serve
to provide a theia preview of the website causes 404, because gitpod is usinglocalhost:4000
that is not accesible to gitpod user.This can either be workedaround using:
cat _config.yml | sed -E "s#^(url:\s{1})(\").*(\").*#\1\2$(gp url)\3#gm" > _config_gitpod.yml && JEKYLL_ENV=production bundle exec jekyll serve --config _config_gitpod.yml
which is not acceptable for gitpod users.Expected behavior
We need some way to display
localhost:4000
in theia's preview, maybe some wrapper for theia's preview that points to$(gp url)
everytimelocalhost
is called on it?Additional information
Blocks gidpodifying of CircuitVerse/Interactive-Book#374
Example repository
https://gitpod.io#snapshot/d3a9516c-4be3-47b2-81dc-df4020ff4f57
The text was updated successfully, but these errors were encountered: