I have deployed my ktor server on Render using exp...
# ktor
s
I have deployed my ktor server on Render using exposed I set up my database and using a json file to parse some fake records
Getting Error like this 2025-10-10 132247.152 [eventLoopGroupProxy-4-1] INFO [Koin] - * Instance creation error : could not create instance for '[Singleton:'com.example.Helper']': java.io.FileNotFoundException: src/main/kotlin/data/books.json (No such file or directory) on this particular thing it is working fine in local I don;t know where you should I put that file onto Need help to where to put that json file
here is the code snippet
Copy code
val jsonString = File(jsonFilePath).readText()
Copy code
seedDatabase("src/main/kotlin/data/books.json")
c
how do you deploy to Render, as a jar or as docker container?
s
as a jar
c
the file should then be in
src/main/resources
and the path will then be
/books.json
if you put it in the root of this folder.
❤️ 1
s
thanks it worked
👍🏻 1