Closed aleksrutins closed 1 year ago
Is this over HTTPS when deployed, but HTTP locally? Curious if that's the issue. If so, you may need to conditionally use one of the serve methods depending on another environment variable.
If not, it could be something like permissions for the port, though I think mist
would handle that more gracefully. If it's not related to HTTP/S, maybe worth testing the exact request it's making on your local? Perhaps some part of the request is not getting handled properly.
Let me know what you find!
Sorry for taking so long to respond, but I guess something got upgraded and it works now.
Hello! I'm getting started with Gleam, and I'm trying to build a web app with it. So far, I just have the code from the web server tutorial (plus logic to determine the port based on environment variables), and it's working perfectly well locally. When I try to deploy it to Railway, however, it gives this error whenever I try to access it:
I'm quite new to both Erlang and Gleam, but I don't see a message, and the stack trace isn't of much help as it refers to the intermediate Erlang files.