Skip to content

Commit

Permalink
Allow testing signals locally
Browse files Browse the repository at this point in the history
It seems that npx doesn't forward signals to tsx correctly, so it shuts down immediately on a SIGINT.

Refs #646
  • Loading branch information
thewilkybarkid committed Jan 8, 2025
1 parent a6bdcba commit fac4ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ smoke-test: build-image start-services
REDIS_PORT=$(shell docker compose port redis 6379 | awk -F":" '{print $$2}') scripts/smoke-test.sh ${IMAGE_TAG}

start: .env node_modules start-services
REDIS_URL=redis://$(shell docker compose port redis 6379) SMTP_URL=smtp://$(shell docker compose port mailcatcher 1025) npx tsx watch --clear-screen=false --require dotenv/config src
REDIS_URL=redis://$(shell docker compose port redis 6379) SMTP_URL=smtp://$(shell docker compose port mailcatcher 1025) node_modules/.bin/tsx watch --clear-screen=false --require dotenv/config src

start-services:
docker compose up --detach
Expand Down

0 comments on commit fac4ddf

Please sign in to comment.