From ab46ac966072f60e594b7f1ced133ba037cc9b62 Mon Sep 17 00:00:00 2001 From: albertchae <217050+albertchae@users.noreply.github.com> Date: Fri, 23 Feb 2024 21:39:37 -0800 Subject: [PATCH] Fix command line invocation of spring boot demo in README and add to Makefile (#16) Also remove `run` from the ktor server, alternatively we can run `gradle run` or gradle bootRun` without scoping the tasks because there aren't collisions, so it's confusing to have `run` twice for the ktor server --- Makefile | 6 +++++- README.md | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9593ae7f..406f2a90 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,10 @@ .PHONY: dev dev: - gradle run inngest-test-server:run + gradle inngest-test-server:run + +.PHONY: dev-spring-boot +dev-spring-boot: + gradle inngest-spring-boot-demo:bootRun .PHONY: test test: diff --git a/README.md b/README.md index 6b529cd0..da4c48d5 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ val myFunction = InngestFunction( To build this in development, set up Java, Kotlin and Gradle locally and run the test server: ``` -gradle run inngest-test-server:run +gradle inngest-test-server:run ``` This runs a `ktor` web server to test the SDK against the dev server. @@ -60,5 +60,5 @@ This runs a `ktor` web server to test the SDK against the dev server. To run the `spring-boot` test server: ``` -gradle run inngest-spring-boot-demo:bootRun +gradle inngest-spring-boot-demo:bootRun ```