lucky icon indicating copy to clipboard operation
lucky copied to clipboard

Configuring production server

Open jkthorne opened this issue 3 years ago • 1 comments

I am building a production server and setting configuration with environment variables and they do not seem to be configuring the server. I am a little confused and debugging it. Has anyone else noticed these problems?

for example I am setting the PORT environment variable and compiling src/start_server.cr on linux. The executable seems to always have the port 5000 unless I hardcode the src/server.cr file. This is very confusing and I have spent a fair bit of time debugging this.

jkthorne avatar Oct 24 '22 14:10 jkthorne

Are you compiling with the LUCKY_ENV=production set? Otherwise it's gonna use DEV_PORT.

jwoertink avatar Oct 24 '22 15:10 jwoertink