-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update spin up
to spin watch
so npm run spin
works.
#1284
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: tpmccallum [email protected] Signed-off-by: Timothy McCallum <[email protected]>
🚀 preview deployed successfully to Fermyon Cloud and available at https://fermyon-developer-pr-1284-qrcubjnh.fermyon.app |
Perhaps there is more to this than meets the eye. Worked the first and second time but failing consistently now: ✓ built in 5.75s
[nodemon] files triggering change check: spin-up-hub/dist/assets/index-a80a27fc.js
[nodemon] matched rule: /home/tpmccallum/Fermyon/developer/spin-up-hub/**/*
[nodemon] changes after filters (before/after): 1/1
[nodemon] restarting due to changes...
[nodemon] spin-up-hub/dist/assets/index-a80a27fc.js
[nodemon] still waiting for 1 sub-process to finish...
[nodemon] still waiting for 1 sub-process to finish...
[nodemon] still waiting for 1 sub-process to finish...
[nodemon] still waiting for 1 sub-process to finish...
[nodemon] still waiting for 1 sub-process to finish...
[nodemon] still waiting for 1 sub-process to finish...
[nodemon] still waiting for 1 sub-process to finish...
[nodemon] still waiting for 1 sub-process to finish...
[nodemon] still waiting for 1 sub-process to finish...
[nodemon] still waiting for 1 sub-process to finish...
[nodemon] still waiting for 1 sub-process to finish... |
@@ -37,7 +37,7 @@ | |||
"yaml-front-matter": "^4.1.1" | |||
}, | |||
"scripts": { | |||
"spin": "nodemon --watch content --watch static --watch templates --watch spin-up-hub --ext html,md,rhai,hbs,css,js --verbose --legacy-watch --signal SIGINT --exec 'npm run build-index && npm run build-hub-index && spin up --file spin.toml --quiet --env PREVIEW_MODE=$PREVIEW_MODE'", | |||
"spin": "nodemon --watch content --watch static --watch templates --watch spin-up-hub --ext html,md,rhai,hbs,css,js --verbose --legacy-watch --signal SIGINT --exec 'npm run build-index && npm run build-hub-index && spin watch --file spin.toml --quiet --env PREVIEW_MODE=$PREVIEW_MODE'", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You do not need both spin watch
and spin up
. They effectively serve the same purpose of restartting. We got to choose one or the other,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @karthik2804
Not sure I understand. There is only one spin command in the package.json (spin watch
) so as far as I can tell after this update the site will exclusively use spin watch
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this might be a typo for not needing both spin watch
and nodemon --watch
. If nodemon is already watching, it shouldn't be telling Spin to watch, just to run. Conversely, if both are watching, spin watch
get as far as going "oh there's a change I better restart spin up
" and then nodemon will swoop in and kills it.
Perhaps an even better idea for this would be to use, cc: @itowlson for viz |
Signed-off-by: tpmccallum [email protected]
Fixes #849
Before: