Skaffold Kubernetes does not display React changesLoop inside React JSXGulp Watch and Nodemon conflictNodemon is not working in Docker environmentProgrammatically navigate using react routerhow to solve this error in react jsGot error running existing react js appCannot access exposed Dockerized React app on KubernetesNODEMON — app crashed - waiting for file changes before startingNodemon not restarting : [nodemon] restarting due to changesDocker hot reloading node app with nodemon using Windows 10

What is this dollar sign ($) icon in my Menu Bar?

How do I preserve the line ordering for two "equal" strings while sorting and ignoring the case?

Expected value until a success?

How to progress with CPLEX/Gurobi

Is there a sentence that begins with “them”?

When did computers stop checking memory on boot?

Can a magnet rip protons from a nucleus?

Tear out when plate making w/ a router

Does the mana ability restriction of Pithing Needle refer to the cost or the effect of an activated ability?

"Not enough RAM " error in PIC16F877a

How is the Team Scooby Doo funded?

Where does the expression "triple-A" comes from?

How does Vivi differ from other Black Mages?

How accurate is the new appraisal system?

What's the biggest difference between these two photos?

Two different colors in an Illustrator stroke / line

Which ping implementation is cygwin using?

Are the definite and indefinite integrals actually two different things? Where is the flaw in my understanding?

Is English tonal for some words, like "permit"?

Awesomism and its awesome gods

Improbable Inequalities

Have there been any countries that voted themselves out of existence?

How flexible are number-of-pages submission guidelines for conferences?

Wrathful Smite, and the term 'Creature'



Skaffold Kubernetes does not display React changes


Loop inside React JSXGulp Watch and Nodemon conflictNodemon is not working in Docker environmentProgrammatically navigate using react routerhow to solve this error in react jsGot error running existing react js appCannot access exposed Dockerized React app on KubernetesNODEMON — app crashed - waiting for file changes before startingNodemon not restarting : [nodemon] restarting due to changesDocker hot reloading node app with nodemon using Windows 10






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















The issue:



When running skaffold and update watched files, I see the file sync update occur and nodemon restart the server, but refreshing the page doesn't show the change. It's not until after I stop skaffold entirely and restart that I see the change.



Syncing 1 files for test/dev-client:e9c0a112af09abedcb441j4asdfasfd1cf80f2a9bc80342fd4123f01f32e234cfc18
Watching for changes every 1s...
[client-deployment-656asdf881-m643v client] [nodemon] restarting due to changes...
[client-deployment-656asdf881-m643v client] [nodemon] starting `node bin/server.js`


The setup:



I have a simple microservices application. It has a server side (flask/python) and a client side (react) with express handling the dev server. I have nodemon on with the legacy watch flag as true (For Chokidar polling). On development I'm using Kubernetes via Docker for Mac.



Code:



I'm happy to post my code to assist. Just let me know which ones are most needed.



Here's some starters:



Skaffold.yaml:



apiVersion: skaffold/v1beta7
kind: Config
build:
local:
push: false
artifacts:
- image: test/dev-client
docker:
dockerfile: Dockerfile.dev
context: ./client
sync:
'**/*.css': .
'**/*.scss': .
'**/*.js': .
- image: test/dev-server
docker:
dockerfile: Dockerfile.dev
context: ./server
sync:
'**/*.py': .
deploy:
kubectl:
manifests:
- k8s-test/client-ip-service.yaml
- k8s-test/client-deployment.yaml
- k8s-test/ingress-service.yaml
- k8s-test/server-cluster-ip-service.yaml
- k8s-test/server-deployment.yaml


The relevant part from Package.json:



 "start": "nodemon -L bin/server.js",


Dockerfile.dev (Client side):



# base image
FROM node:10.8.0-alpine

# setting the working directory
# may have to run this depending on environment
# RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# add '/usr/src/app/node_modules/.bin' to $PATH
ENV PATH /usr/src/app/node_modules/.bin:$PATH

# install and cache app depencies
COPY package.json /usr/src/app/package.json
RUN npm install

# copy over everything else
COPY . .

# start the app.
CMD ["npm", "run", "start"]









share|improve this question






























    2















    The issue:



    When running skaffold and update watched files, I see the file sync update occur and nodemon restart the server, but refreshing the page doesn't show the change. It's not until after I stop skaffold entirely and restart that I see the change.



    Syncing 1 files for test/dev-client:e9c0a112af09abedcb441j4asdfasfd1cf80f2a9bc80342fd4123f01f32e234cfc18
    Watching for changes every 1s...
    [client-deployment-656asdf881-m643v client] [nodemon] restarting due to changes...
    [client-deployment-656asdf881-m643v client] [nodemon] starting `node bin/server.js`


    The setup:



    I have a simple microservices application. It has a server side (flask/python) and a client side (react) with express handling the dev server. I have nodemon on with the legacy watch flag as true (For Chokidar polling). On development I'm using Kubernetes via Docker for Mac.



    Code:



    I'm happy to post my code to assist. Just let me know which ones are most needed.



    Here's some starters:



    Skaffold.yaml:



    apiVersion: skaffold/v1beta7
    kind: Config
    build:
    local:
    push: false
    artifacts:
    - image: test/dev-client
    docker:
    dockerfile: Dockerfile.dev
    context: ./client
    sync:
    '**/*.css': .
    '**/*.scss': .
    '**/*.js': .
    - image: test/dev-server
    docker:
    dockerfile: Dockerfile.dev
    context: ./server
    sync:
    '**/*.py': .
    deploy:
    kubectl:
    manifests:
    - k8s-test/client-ip-service.yaml
    - k8s-test/client-deployment.yaml
    - k8s-test/ingress-service.yaml
    - k8s-test/server-cluster-ip-service.yaml
    - k8s-test/server-deployment.yaml


    The relevant part from Package.json:



     "start": "nodemon -L bin/server.js",


    Dockerfile.dev (Client side):



    # base image
    FROM node:10.8.0-alpine

    # setting the working directory
    # may have to run this depending on environment
    # RUN mkdir -p /usr/src/app
    WORKDIR /usr/src/app

    # add '/usr/src/app/node_modules/.bin' to $PATH
    ENV PATH /usr/src/app/node_modules/.bin:$PATH

    # install and cache app depencies
    COPY package.json /usr/src/app/package.json
    RUN npm install

    # copy over everything else
    COPY . .

    # start the app.
    CMD ["npm", "run", "start"]









    share|improve this question


























      2












      2








      2








      The issue:



      When running skaffold and update watched files, I see the file sync update occur and nodemon restart the server, but refreshing the page doesn't show the change. It's not until after I stop skaffold entirely and restart that I see the change.



      Syncing 1 files for test/dev-client:e9c0a112af09abedcb441j4asdfasfd1cf80f2a9bc80342fd4123f01f32e234cfc18
      Watching for changes every 1s...
      [client-deployment-656asdf881-m643v client] [nodemon] restarting due to changes...
      [client-deployment-656asdf881-m643v client] [nodemon] starting `node bin/server.js`


      The setup:



      I have a simple microservices application. It has a server side (flask/python) and a client side (react) with express handling the dev server. I have nodemon on with the legacy watch flag as true (For Chokidar polling). On development I'm using Kubernetes via Docker for Mac.



      Code:



      I'm happy to post my code to assist. Just let me know which ones are most needed.



      Here's some starters:



      Skaffold.yaml:



      apiVersion: skaffold/v1beta7
      kind: Config
      build:
      local:
      push: false
      artifacts:
      - image: test/dev-client
      docker:
      dockerfile: Dockerfile.dev
      context: ./client
      sync:
      '**/*.css': .
      '**/*.scss': .
      '**/*.js': .
      - image: test/dev-server
      docker:
      dockerfile: Dockerfile.dev
      context: ./server
      sync:
      '**/*.py': .
      deploy:
      kubectl:
      manifests:
      - k8s-test/client-ip-service.yaml
      - k8s-test/client-deployment.yaml
      - k8s-test/ingress-service.yaml
      - k8s-test/server-cluster-ip-service.yaml
      - k8s-test/server-deployment.yaml


      The relevant part from Package.json:



       "start": "nodemon -L bin/server.js",


      Dockerfile.dev (Client side):



      # base image
      FROM node:10.8.0-alpine

      # setting the working directory
      # may have to run this depending on environment
      # RUN mkdir -p /usr/src/app
      WORKDIR /usr/src/app

      # add '/usr/src/app/node_modules/.bin' to $PATH
      ENV PATH /usr/src/app/node_modules/.bin:$PATH

      # install and cache app depencies
      COPY package.json /usr/src/app/package.json
      RUN npm install

      # copy over everything else
      COPY . .

      # start the app.
      CMD ["npm", "run", "start"]









      share|improve this question














      The issue:



      When running skaffold and update watched files, I see the file sync update occur and nodemon restart the server, but refreshing the page doesn't show the change. It's not until after I stop skaffold entirely and restart that I see the change.



      Syncing 1 files for test/dev-client:e9c0a112af09abedcb441j4asdfasfd1cf80f2a9bc80342fd4123f01f32e234cfc18
      Watching for changes every 1s...
      [client-deployment-656asdf881-m643v client] [nodemon] restarting due to changes...
      [client-deployment-656asdf881-m643v client] [nodemon] starting `node bin/server.js`


      The setup:



      I have a simple microservices application. It has a server side (flask/python) and a client side (react) with express handling the dev server. I have nodemon on with the legacy watch flag as true (For Chokidar polling). On development I'm using Kubernetes via Docker for Mac.



      Code:



      I'm happy to post my code to assist. Just let me know which ones are most needed.



      Here's some starters:



      Skaffold.yaml:



      apiVersion: skaffold/v1beta7
      kind: Config
      build:
      local:
      push: false
      artifacts:
      - image: test/dev-client
      docker:
      dockerfile: Dockerfile.dev
      context: ./client
      sync:
      '**/*.css': .
      '**/*.scss': .
      '**/*.js': .
      - image: test/dev-server
      docker:
      dockerfile: Dockerfile.dev
      context: ./server
      sync:
      '**/*.py': .
      deploy:
      kubectl:
      manifests:
      - k8s-test/client-ip-service.yaml
      - k8s-test/client-deployment.yaml
      - k8s-test/ingress-service.yaml
      - k8s-test/server-cluster-ip-service.yaml
      - k8s-test/server-deployment.yaml


      The relevant part from Package.json:



       "start": "nodemon -L bin/server.js",


      Dockerfile.dev (Client side):



      # base image
      FROM node:10.8.0-alpine

      # setting the working directory
      # may have to run this depending on environment
      # RUN mkdir -p /usr/src/app
      WORKDIR /usr/src/app

      # add '/usr/src/app/node_modules/.bin' to $PATH
      ENV PATH /usr/src/app/node_modules/.bin:$PATH

      # install and cache app depencies
      COPY package.json /usr/src/app/package.json
      RUN npm install

      # copy over everything else
      COPY . .

      # start the app.
      CMD ["npm", "run", "start"]






      reactjs kubernetes nodemon skaffold






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 7:53









      dizzydizzy

      3363 silver badges17 bronze badges




      3363 silver badges17 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          3
















          It turns out I was using the wrong pattern for my file syncs. **/*.js doesn't sync the directory properly.



          After changing



          sync:
          '**/*.css': .
          '**/*.scss': .
          '**/*.js': .


          to



          sync:
          '***/*.css': .
          '***/*.scss': .
          '***/*.js': .


          It immediately began working.




          Update:
          On the latest versions of skaffold, this pattern no longer works as skaffold abandoned flattening by default. You can now use **/* patterns and get the same results.






          share|improve this answer



























          • i.e. see github.com/GoogleContainerTools/skaffold/issues/1896

            – jtlz2
            Jun 10 at 16:49






          • 1





            @jtlz2 that's my ticket. Along with my edit (see above), there is now a new ticket discussing this: github.com/GoogleContainerTools/skaffold/issues/2158

            – dizzy
            Jun 15 at 6:31












          • I am getting issues with syncing in skaffold run, but since I have little idea where to start the question would be too vague :(

            – jtlz2
            Jun 15 at 12:13






          • 1





            If you post an issue on github or a question here, let me know and I'd be happy to look over it.

            – dizzy
            Jun 15 at 18:38











          • Thanks @dizzy, much appreciated!

            – jtlz2
            Jun 15 at 18:42










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55392559%2fskaffold-kubernetes-does-not-display-react-changes%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3
















          It turns out I was using the wrong pattern for my file syncs. **/*.js doesn't sync the directory properly.



          After changing



          sync:
          '**/*.css': .
          '**/*.scss': .
          '**/*.js': .


          to



          sync:
          '***/*.css': .
          '***/*.scss': .
          '***/*.js': .


          It immediately began working.




          Update:
          On the latest versions of skaffold, this pattern no longer works as skaffold abandoned flattening by default. You can now use **/* patterns and get the same results.






          share|improve this answer



























          • i.e. see github.com/GoogleContainerTools/skaffold/issues/1896

            – jtlz2
            Jun 10 at 16:49






          • 1





            @jtlz2 that's my ticket. Along with my edit (see above), there is now a new ticket discussing this: github.com/GoogleContainerTools/skaffold/issues/2158

            – dizzy
            Jun 15 at 6:31












          • I am getting issues with syncing in skaffold run, but since I have little idea where to start the question would be too vague :(

            – jtlz2
            Jun 15 at 12:13






          • 1





            If you post an issue on github or a question here, let me know and I'd be happy to look over it.

            – dizzy
            Jun 15 at 18:38











          • Thanks @dizzy, much appreciated!

            – jtlz2
            Jun 15 at 18:42















          3
















          It turns out I was using the wrong pattern for my file syncs. **/*.js doesn't sync the directory properly.



          After changing



          sync:
          '**/*.css': .
          '**/*.scss': .
          '**/*.js': .


          to



          sync:
          '***/*.css': .
          '***/*.scss': .
          '***/*.js': .


          It immediately began working.




          Update:
          On the latest versions of skaffold, this pattern no longer works as skaffold abandoned flattening by default. You can now use **/* patterns and get the same results.






          share|improve this answer



























          • i.e. see github.com/GoogleContainerTools/skaffold/issues/1896

            – jtlz2
            Jun 10 at 16:49






          • 1





            @jtlz2 that's my ticket. Along with my edit (see above), there is now a new ticket discussing this: github.com/GoogleContainerTools/skaffold/issues/2158

            – dizzy
            Jun 15 at 6:31












          • I am getting issues with syncing in skaffold run, but since I have little idea where to start the question would be too vague :(

            – jtlz2
            Jun 15 at 12:13






          • 1





            If you post an issue on github or a question here, let me know and I'd be happy to look over it.

            – dizzy
            Jun 15 at 18:38











          • Thanks @dizzy, much appreciated!

            – jtlz2
            Jun 15 at 18:42













          3














          3










          3









          It turns out I was using the wrong pattern for my file syncs. **/*.js doesn't sync the directory properly.



          After changing



          sync:
          '**/*.css': .
          '**/*.scss': .
          '**/*.js': .


          to



          sync:
          '***/*.css': .
          '***/*.scss': .
          '***/*.js': .


          It immediately began working.




          Update:
          On the latest versions of skaffold, this pattern no longer works as skaffold abandoned flattening by default. You can now use **/* patterns and get the same results.






          share|improve this answer















          It turns out I was using the wrong pattern for my file syncs. **/*.js doesn't sync the directory properly.



          After changing



          sync:
          '**/*.css': .
          '**/*.scss': .
          '**/*.js': .


          to



          sync:
          '***/*.css': .
          '***/*.scss': .
          '***/*.js': .


          It immediately began working.




          Update:
          On the latest versions of skaffold, this pattern no longer works as skaffold abandoned flattening by default. You can now use **/* patterns and get the same results.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jun 15 at 6:30

























          answered Mar 31 at 19:59









          dizzydizzy

          3363 silver badges17 bronze badges




          3363 silver badges17 bronze badges















          • i.e. see github.com/GoogleContainerTools/skaffold/issues/1896

            – jtlz2
            Jun 10 at 16:49






          • 1





            @jtlz2 that's my ticket. Along with my edit (see above), there is now a new ticket discussing this: github.com/GoogleContainerTools/skaffold/issues/2158

            – dizzy
            Jun 15 at 6:31












          • I am getting issues with syncing in skaffold run, but since I have little idea where to start the question would be too vague :(

            – jtlz2
            Jun 15 at 12:13






          • 1





            If you post an issue on github or a question here, let me know and I'd be happy to look over it.

            – dizzy
            Jun 15 at 18:38











          • Thanks @dizzy, much appreciated!

            – jtlz2
            Jun 15 at 18:42

















          • i.e. see github.com/GoogleContainerTools/skaffold/issues/1896

            – jtlz2
            Jun 10 at 16:49






          • 1





            @jtlz2 that's my ticket. Along with my edit (see above), there is now a new ticket discussing this: github.com/GoogleContainerTools/skaffold/issues/2158

            – dizzy
            Jun 15 at 6:31












          • I am getting issues with syncing in skaffold run, but since I have little idea where to start the question would be too vague :(

            – jtlz2
            Jun 15 at 12:13






          • 1





            If you post an issue on github or a question here, let me know and I'd be happy to look over it.

            – dizzy
            Jun 15 at 18:38











          • Thanks @dizzy, much appreciated!

            – jtlz2
            Jun 15 at 18:42
















          i.e. see github.com/GoogleContainerTools/skaffold/issues/1896

          – jtlz2
          Jun 10 at 16:49





          i.e. see github.com/GoogleContainerTools/skaffold/issues/1896

          – jtlz2
          Jun 10 at 16:49




          1




          1





          @jtlz2 that's my ticket. Along with my edit (see above), there is now a new ticket discussing this: github.com/GoogleContainerTools/skaffold/issues/2158

          – dizzy
          Jun 15 at 6:31






          @jtlz2 that's my ticket. Along with my edit (see above), there is now a new ticket discussing this: github.com/GoogleContainerTools/skaffold/issues/2158

          – dizzy
          Jun 15 at 6:31














          I am getting issues with syncing in skaffold run, but since I have little idea where to start the question would be too vague :(

          – jtlz2
          Jun 15 at 12:13





          I am getting issues with syncing in skaffold run, but since I have little idea where to start the question would be too vague :(

          – jtlz2
          Jun 15 at 12:13




          1




          1





          If you post an issue on github or a question here, let me know and I'd be happy to look over it.

          – dizzy
          Jun 15 at 18:38





          If you post an issue on github or a question here, let me know and I'd be happy to look over it.

          – dizzy
          Jun 15 at 18:38













          Thanks @dizzy, much appreciated!

          – jtlz2
          Jun 15 at 18:42





          Thanks @dizzy, much appreciated!

          – jtlz2
          Jun 15 at 18:42








          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.




















          draft saved

          draft discarded















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55392559%2fskaffold-kubernetes-does-not-display-react-changes%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현