Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring production server #1756

Open
jkthorne opened this issue Oct 24, 2022 · 1 comment
Open

Configuring production server #1756

jkthorne opened this issue Oct 24, 2022 · 1 comment
Labels

Comments

@jkthorne
Copy link
Contributor

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 jkthorne added the bug label Oct 24, 2022
@jwoertink
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants