paulmwatson
paulmwatson
RRailway
Created by paulmwatson on 9/29/2023 in #✋|help
Rails config.hosts
Hello, I tried to add this to config/environments/production.rb:
config.hosts << ENV['RAILWAY_PUBLIC_DOMAIN']
config.hosts << ENV['RAILWAY_PUBLIC_DOMAIN']
But I'm still getting an error on https://rails-production-b7c8.up.railway.app/
To allow requests to rails-production-b7c8.up.railway.app make sure it is a valid hostname (containing only numbers, letters, dashes and dots), then add the following to your environment configuration:
config.hosts << "rails-production-b7c8.up.railway.app"
To allow requests to rails-production-b7c8.up.railway.app make sure it is a valid hostname (containing only numbers, letters, dashes and dots), then add the following to your environment configuration:
config.hosts << "rails-production-b7c8.up.railway.app"
I don't want to hard code in the Railway host which is why I tried the provided Railway domain.
17 replies