lucky
lucky copied to clipboard
Configuring production server
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.
Are you compiling with the LUCKY_ENV=production set? Otherwise it's gonna use DEV_PORT.