Skip to content

chore: allow process.env.PORT in webpack.dev #1071

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

Merged
merged 1 commit into from
Apr 19, 2022
Merged

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Apr 19, 2022

This PR adds a small improvement which allows you to override the port that webpack runs on using PORT as an environment variable. Adding this because some folks use applications (aka code-server) that run on 8080.

@jsjoeio jsjoeio self-assigned this Apr 19, 2022
@jsjoeio jsjoeio requested a review from a team as a code owner April 19, 2022 15:44
@codecov
Copy link

codecov bot commented Apr 19, 2022

Codecov Report

Merging #1071 (84e1aac) into main (c8246e3) will decrease coverage by 0.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1071      +/-   ##
==========================================
- Coverage   66.79%   66.70%   -0.09%     
==========================================
  Files         262      262              
  Lines       15653    15653              
  Branches      152      152              
==========================================
- Hits        10456    10442      -14     
- Misses       4136     4147      +11     
- Partials     1061     1064       +3     
Flag Coverage Δ
unittest-go-macos-latest 53.36% <ø> (-0.24%) ⬇️
unittest-go-postgres- 66.03% <ø> (+0.07%) ⬆️
unittest-go-ubuntu-latest 55.86% <ø> (-0.01%) ⬇️
unittest-go-windows-2022 52.96% <ø> (+0.04%) ⬆️
unittest-js 67.96% <ø> (ø)
Impacted Files Coverage Δ
pty/start_other.go 64.70% <0.00%> (-23.53%) ⬇️
provisionersdk/transport.go 78.72% <0.00%> (-6.39%) ⬇️
provisioner/echo/serve.go 56.80% <0.00%> (-2.41%) ⬇️
provisionerd/provisionerd.go 80.73% <0.00%> (-1.18%) ⬇️
peer/conn.go 78.42% <0.00%> (-0.77%) ⬇️
coderd/provisionerdaemons.go 60.37% <0.00%> (ø)
peer/channel.go 83.81% <0.00%> (+0.57%) ⬆️
coderd/workspaceagents.go 62.59% <0.00%> (+1.48%) ⬆️
cli/cliui/provisionerjob.go 78.57% <0.00%> (+2.14%) ⬆️
cli/cliui/agent.go 82.45% <0.00%> (+5.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c8246e3...84e1aac. Read the comment docs.

@jsjoeio jsjoeio merged commit 97e07a4 into main Apr 19, 2022
@jsjoeio jsjoeio deleted the jsjoeio/use-port-env branch April 19, 2022 15:58
@greyscaled greyscaled changed the title chore(webpack): allow process.env.PORT chore: allow process.env.PORT in webpack.dev Apr 19, 2022
@misskniss misskniss added this to the V2 Beta milestone May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants