fastify / fastify-cli

Run a Fastify application with one command!
MIT License
657 stars 163 forks source link

npm run dev:start exited with code SIGTERM #629

Closed SoftwareAndOutsourcing closed 1 year ago

SoftwareAndOutsourcing commented 1 year ago

Prerequisites

Issue

node 18.16.0 fastly-cli 5.7.1

fastify generate fastify-test --lang=ts
cd fastify-test
npm i
npm run dev

Output:

> fastify-test@1.0.0 dev
> npm run build:ts && concurrently -k -p "[{name}]" -n "TypeScript,App" -c "yellow.bold,cyan.bold" "npm:watch:ts" "npm:dev:start"

> fastify-test@1.0.0 build:ts
> tsc

[TypeScript] npm run watch:ts exited with code 0
--> Sending SIGTERM to other processes..
[App] npm run dev:start exited with code SIGTERM
Eomm commented 1 year ago

Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.

rubiagatra commented 1 year ago

I tried with 5.8.0 looks fine.

❯ npm run dev

> fastify-test@1.0.0 dev
> npm run build:ts && concurrently -k -p "[{name}]" -n "TypeScript,App" -c "yellow.bold,cyan.bold" "npm:watch:ts" "npm:dev:start"

> fastify-test@1.0.0 build:ts
> tsc

[TypeScript]
[TypeScript] > fastify-test@1.0.0 watch:ts
[TypeScript] > tsc -w
[TypeScript]
[App]
[App] > fastify-test@1.0.0 dev:start
[App] > fastify start --ignore-watch=.ts$ -w -l info -P dist/app.js
[App]
[TypeScript]
[9:36:40 AM] Starting compilation in watch mode...
[TypeScript]
[App] [09:36:40.984] INFO (27367): Server listening at http://127.0.0.1:3000
[App] [09:36:40.986] INFO (27367): Server listening at http://[::1]:3000
[TypeScript] [9:36:41 AM] Found 0 errors. Watching for file changes.
[TypeScript]
[App] [09:36:41.639] INFO (27372): Server listening at http://127.0.0.1:3000
[App] [09:36:41.640] INFO (27372): Server listening at http://[::1]:3000