Skip to content

feat: add custom port#5

Merged
daltonbr merged 2 commits into
mainfrom
feat/custom-port
Dec 21, 2025
Merged

feat: add custom port#5
daltonbr merged 2 commits into
mainfrom
feat/custom-port

Conversation

@daltonbr

@daltonbr daltonbr commented Dec 21, 2025

Copy link
Copy Markdown
Owner

Now we can set this to run on other ports, other than the default one.
Closes #3

@codecov-commenter

codecov-commenter commented Dec 21, 2025

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.77%. Comparing base (a524509) to head (b68ceff).

Files with missing lines Patch % Lines
main.go 0.00% 10 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #5      +/-   ##
==========================================
- Coverage   76.72%   71.77%   -4.95%     
==========================================
  Files           3        3              
  Lines         116      124       +8     
==========================================
  Hits           89       89              
- Misses         20       28       +8     
  Partials        7        7              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for configuring a custom HTTP server port via the PORT environment variable, allowing the server to run on ports other than the default 5000.

  • Introduces PORT environment variable configuration in main.go
  • Updates documentation with examples of using custom ports
  • Provides Docker and local development examples for port configuration

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
main.go Adds PORT environment variable reading with default fallback to 5000, updates server startup messages to use configured port
docs/DEVELOPMENT.md Documents PORT environment variable usage with examples for local development and Docker deployment
README.md Adds environment variables section documenting PORT configuration option

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread main.go
Comment thread main.go Outdated
@daltonbr daltonbr merged commit e5cae20 into main Dec 21, 2025
1 check passed
@daltonbr daltonbr deleted the feat/custom-port branch December 21, 2025 03:53
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.

Make the default port configurable

3 participants