feat: add custom port#5
Merged
Merged
Conversation
|
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now we can set this to run on other ports, other than the default one.
Closes #3