修复:添加允许的主机名配置

This commit is contained in:
2026-02-04 23:40:09 +08:00
parent 4cd82543e3
commit 318612c7a7

View File

@@ -85,6 +85,14 @@ spec:
end
RUBY
# 配置允许的主机名
cat > config/initializers/hosts.rb <<'RUBY'
Rails.application.configure do
config.hosts << "r1.jpd.net3w.com"
config.hosts << ".jpd.net3w.com"
end
RUBY
rails server -b 0.0.0.0 -p 3000
ports:
- containerPort: 3000