https://kotlinlang.org logo
#kotless
Title
# kotless
c

Christophe Smet

07/23/2020, 6:53 PM
Stupid question.
./gradlew local
works perfect, but i launches a new docker instance every time. How can I deploy something locally again without new docker instances?
t

TanVD

07/23/2020, 7:16 PM
Hm, it launches docker only for AWS emulation -- have you enabled it?
c

Christophe Smet

07/24/2020, 8:29 AM
Yes and it works. But it spins up new instances every time I run ./gradlew local
Ideally it would see that it has already spun it the image and just recompile and deploy locally. Or did I use the incorrect command?
Still figuring out how to create dev/prd envs but it works GREAT for the rest!
t

TanVD

07/24/2020, 10:15 AM
Hm, does previous docker image stops before new spins up? I have to restart due to possible configuration changes 😞
Why is it problem for you that is spins up each time? Does it take too much time? Or is it takes too much storage?
I mean that depending on a problem I can fix it in one way or another 🙂
c

Christophe Smet

07/24/2020, 12:06 PM
Everything was going really slow locally, I saw that I had 20+ instances running. mmh I was doing terraform changes indeed.
it’s not really a blocker, Im still figuring out a development flow. I read that it has in-ide debugging. But I dont see how to make it work. I would LOVE breakpoints 😛 Attaching to runnnig processes isnt working.
t

TanVD

07/24/2020, 12:29 PM
Hm, have you tried just running with debug task
local
?)
c

Christophe Smet

07/24/2020, 3:48 PM
Thanks for the video. Yes I am using the local task. Strange, the webserver works. But breakpoints are not being triggered. Any idea in what direction I should look? Im not experience with how the connection is made.
t

TanVD

07/24/2020, 4:28 PM
Well, it is pretty strange. I would try to update or reinstall IntelliJ. Most likely the problem is one the side of IDE
Here is issue: https://github.com/JetBrains/kotless/issues/49 It'll be fixed in 0.1.6
c

Christophe Smet

08/10/2020, 1:50 PM
@TanVD Thanks man!!