Git Product home page Git Product logo

phoenix-gitpod's People

Contributors

benvp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

phoenix-gitpod's Issues

Code updates don't trigger live reload in browser preview panel?

After loading this project in Gitpod, it seems that a live reload is not triggered in the Gitpod browser preview when I update code. Live reload seems to work when the preview is in a separate browser window, but it does not work when viewing the preview as an iframe panel in the all-in-one Gitpod.

Steps to replicate

  1. Create a new Gitpod project based on this repo.
  2. Make sure the preview panel is showing. If not showing by default, click Gitpod prompts to display it, or click the ports button in the bottom right of the window and click the "Open Preview" icon (looks like two rectangles with a magnifying glass) next to port 4000.
  3. Edit the HTML in lib/gitpod_web/templates/page/index.html.heex
  • Expected behavior: Browser preview will automatically refresh to reflect the update.
  • Observed behavior:
    • No automatic refresh. However, the terminal output suggests Live reload is running:
    [debug] Live reload: lib/gitpod_web/templates/page/index.html.heex
    [debug] Live reload: lib/gitpod_web/templates/page/index.html.heex
    [debug] Live reload: lib/gitpod_web/templates/page/index.html.heex
    
    • A manual reload will correctly reflect the updates.
    • If you load the preview in a separate browser window instead of the iframe panel, live reload works as expected.
      • In this case, in addition to the lines above, this is added to the terminal output on save:
    [debug] Live reload: lib/gitpod_web/templates/page/index.html.heex
    [debug] Live reload: lib/gitpod_web/templates/page/index.html.heex
    [debug] Live reload: lib/gitpod_web/templates/page/index.html.heex
    Compiling 1 file (.ex)
    [info] GET /
    [debug] Processing with GitpodWeb.PageController.index/2
      Parameters: %{}
      Pipelines: [:browser]
    [info] Sent 200 in 2ms
    

I am running VS Code in the browser.

Being new to Elixir, I'm not sure if this is a bug or something specific to the Gitpod environment. In any case, thanks for building this fantastic template and documenting it on your blog!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.