Closed
Description
Describe the bug
Using JEKYLL_ENV=development bundle exec jekyll serve
to provide a theia preview of the website causes 404, because gitpod is using localhost:4000
that is not accesible to gitpod user.
This can either be workedaround using:
- Firefox in noVNC
- Rewriting the whole repository to accept special gitpod environment
- Weird hack alike
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)
everytime localhost
is called on it?
Additional information
Blocks gidpodifying of CircuitVerse/Interactive-Book#374
Example repository
https://gitpod.io#snapshot/d3a9516c-4be3-47b2-81dc-df4020ff4f57