Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ class Application < Rails::Application
# Only loads a smaller set of middleware suitable for API only apps.
# Middleware like session, flash, cookies can be added back manually.
# Skip views, helpers and assets when generating a new resource.
config.hosts = %w[localhost:3000 127.0.0.1:3000 0.0.0.0:3000]
if ENV["HOSTS"].present?
ENV["HOSTS"].split(",").each do |host|
config.hosts << host.strip
end
end
# config.hosts = %w[localhost:3000 127.0.0.1:3000 0.0.0.0:3000]
# if ENV["HOSTS"].present?
# ENV["HOSTS"].split(",").each do |host|
# config.hosts << host.strip
# end
# end
end
end
Loading