Pavel Petkevich
06/20/2020, 9:56 AM./gradlew :client:run --continuous
and it will run continuously our website on the localhost. (works fine).
But my target is to run it from the server module, usign this shell command:
./gradlew :server:run --continuous
and it runs perfectly but not presenting the page….
-----------------------------------
Possible solution:
I would say that I know the root cause: It happens because the server module has no access to the pregenerated file - "build/distributions/client.js"
. Also I’m trying to copy it with this code in `build.gradle.kts(:server)`:
val processResources by tasks.existing(ProcessResources::class)
processResources {
from(project(":client").tasks.getByName("browserProductionWebpack").path)
// dependsOn(project(":client").tasks.getByName("browserProductionWebpack")) - also doesn't work...
}
In case someone already faced with this kind of problem, maybe you can help me to figure out the best solution. 😄
Thank you in advance 😄turansky
06/20/2020, 12:26 PMPavel Petkevich
06/20/2020, 12:36 PMturansky
06/20/2020, 12:39 PMdestinationDirectory
in examplePavel Petkevich
06/20/2020, 4:18 PMJoost Klitsie
06/20/2020, 4:28 PMJoost Klitsie
06/20/2020, 4:29 PMJoost Klitsie
06/20/2020, 4:30 PMPavel Petkevich
06/20/2020, 4:36 PMJoost Klitsie
06/20/2020, 5:36 PMturansky
06/20/2020, 6:52 PMturansky
06/20/2020, 6:54 PMUnresolved reference: destinationDirectory@Pavel Petkevich which Kotlin version do you use?
Pavel Petkevich
06/20/2020, 6:55 PMturansky
06/20/2020, 7:07 PMIlya Goncharov [JB]
06/20/2020, 7:11 PMtasks.withType(KotlinWebpack::class.java).getByName(“browserProductionWebpack”).destinationDirectory
Pavel Petkevich
06/20/2020, 7:21 PMbuild/resources/client.js
😄