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

🐞 Bug Fix - Port not reading from environment variable #33

Merged
merged 1 commit into from Sep 5, 2022

Conversation

MattCheely
Copy link
Contributor

Problem

There's a bit of a hidden feature where the PORT environment variable can be used to se the elm-land server port. However, it looks like a refactor at some point may have disconnected that logic from the port setup. This change links it all up.

Solution

Moves the env check closer to the server set up, and makes sure it gets passed to vite.

@netlify
Copy link

netlify bot commented Sep 4, 2022

Deploy Preview for elm-land canceled.

Name Link
🔨 Latest commit 0a1ebe6
🔍 Latest deploy log https://app.netlify.com/sites/elm-land/deploys/63152e2a66dd31000892c7f2

@ryan-haskell ryan-haskell changed the title 🐞 Bug Fix - Port not reading from envrionment variable 🐞 Bug Fix - Port not reading from environment variable Sep 5, 2022
Copy link
Contributor

@ryan-haskell ryan-haskell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix looks great! It will be included in the v0.16.2 release 🚀

@ryan-haskell ryan-haskell added Bug Something isn't working as promised @elm-land/app labels Sep 5, 2022
@ryan-haskell ryan-haskell merged commit e6ea78c into elm-land:main Sep 5, 2022
@MattCheely MattCheely deleted the fix-port-env branch September 28, 2022 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working as promised
Development

Successfully merging this pull request may close these issues.

None yet

2 participants