Coder Social home page Coder Social logo

jenfi-eng / docker-rails-reload-issue Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 16.17 MB

Showing Docker Desktop for Mac 2.4.0.0 causes Rails reload issues.

Dockerfile 1.38% Ruby 72.99% JavaScript 7.34% CSS 1.38% SCSS 2.30% HTML 14.23% Shell 0.39%

docker-rails-reload-issue's Introduction

Rails Reload Issue

  • Working Docker Community for Mac 2.3.0.5
  • Broken Docker Community for Mac 2.4.0.0

Instructions to Reproduce

  1. Run docker-compose up --build
  2. Visit http://localhost:3000/posts
    • See words DELETE ME
  3. Edit views/posts/index.html.erb
    • Remove words DELETE ME
  4. Refresh
    • If running 2.3.0.5, words will disappear.
    • If running 2.4.0.0, words remain (supposed to disappear).
      • Restart container to pick up chnages.

Swap docker versions to see broken vs working.

Docker Community 2.4.0.0

While on 2.4.0.0, you can force refresh to work by swapping file watchers.

  1. Search for SWAP_FILE_WATCHER
  2. Swap lines so FileUpdateChecker is active
  3. Restart container & rerun instructions above

docker-rails-reload-issue's People

Contributors

nitsujri avatar

Watchers

 avatar

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.