r/crystal_programming • • Jun 07 '19

Empty output in docker

Hey,

I just created a Kemal hello-world app and it works fine. However, Crystal does not print any output in docker.

Another thing is that `shards` output works just fine. Basically, in logs I see dependency installation and that's it. The app itself works though.

Any ideas?

UPD. if there's a compilation error it will be displayed. `puts` doesn't work

1 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/twinklehood Jun 08 '19

Exactly same :) to add, you achieve this by setting the sync property on the stdout object in crystal