-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Supervisor not working as expected after upgrading from Foal 2 to Foal 4 #1258
Comments
Which version of supervisor did you have in Foal 2 and in Foal 4? Also, what was the command in |
Foal TS 2 command: {
"develop": "npm run build && concurrently \"tsc -p tsconfig.app.json -w\" \"supervisor -w ./build,./config -e js,json,yml --no-restart-on error ./build/index.js\"",
} Supervisor version: {
"supervisor": "~0.12.0",
} Note: I didn't realize that the only difference was the command, I thought they were different versions too |
Out of curiosity, what operating system are you running? The reasons why
But perhaps this is something that no longer applies:
(I don't think popularity is a good criterion for choice though.) An alternative, which I hope will work one day, would be to use the native Moving to They are some stuff that should still work though:
|
@lcnvdl if you take this one, I'd recommend to start with a completely new fork and "checkouts" your feature branch from |
Thank you for your answer.
Windows 11
I understand your reasons.
Sure!
Ok
Ok
Ok, I never tried that examples, but I will run them before and after the change, in order to get the same results. |
Sure! Thanks for the information |
I'm developing a micro-services backend using Foal TS.
In the development environment, I use a "multiple console" runner. I launch every service at the same time.
The problem is that when I run the Foal 4 projects, it never starts, I have to reboot manually the services until it starts working. And, also, it takes sometimes like 10 minutes.
In the next image: Metr is working, Coord, Cred, High, Iden, Logg, Stge and Stor are not working. Mail and Func are not FoalTS services, so please ignore them.
That is not what happens if I run all the Foal V2 projects.
In the next image: All services are working.
I'm sure the problem is Supervisor, because the problem was fixed after replacing it with another tool (a popular tool named
nodemon
).https://www.npmjs.com/package/nodemon
This not only solves the problem, but also starts the project faster.
My new command for
npm run dev
is:The text was updated successfully, but these errors were encountered: