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;
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
add a comment |
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
add a comment |
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
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
reactjs kubernetes nodemon skaffold
asked Mar 28 at 7:53
dizzydizzy
3363 silver badges17 bronze badges
3363 silver badges17 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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