Skip to content

Commit 523fc72

Browse files
committed
chore(ops): align default service port to 4000 across runtime and docs
Reduce deployment and smoke-test drift by using one default port across Puma, docker smoke probes, and OpenAPI examples. Decision: standardize on 4000 to match current container/devcontainer wiring and README guidance. Tradeoff: environments implicitly relying on legacy 3000 defaults must now set PORT explicitly, which is safer than silent mismatch.
1 parent 3769137 commit 523fc72

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

config/puma.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
log_requests false
1616
end
1717

18-
port ENV.fetch('PORT', 3000)
18+
port ENV.fetch('PORT', 4000)
1919
environment ENV.fetch('RACK_ENV', 'development')

docs/api/v1/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ info:
1515
servers:
1616
- url: https://html2rss-web.example.com/api/v1
1717
description: Production server
18-
- url: http://localhost:3000/api/v1
18+
- url: http://localhost:4000/api/v1
1919
description: Development server
2020

2121
security:

spec/smoke/docker_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
require 'uri'
66

77
RSpec.describe 'Dockerized API smoke test', :docker do # rubocop:disable RSpec/DescribeClass
8-
let(:base_url) { ENV.fetch('SMOKE_BASE_URL', 'http://127.0.0.1:3000') }
8+
let(:base_url) { ENV.fetch('SMOKE_BASE_URL', 'http://127.0.0.1:4000') }
99
let(:health_token) { ENV.fetch('SMOKE_HEALTH_TOKEN', 'health-check-token-xyz789') }
1010
let(:feed_token) { ENV.fetch('SMOKE_API_TOKEN', 'allow-any-urls-abcd-4321') }
1111

0 commit comments

Comments
 (0)