sutty/config/initializers/hosts.rb

12 lines
253 B
Ruby
Raw Normal View History

2019-09-06 23:40:33 +00:00
# frozen_string_literal: true
Rails.application.configure do
next unless ENV['RAILS_ENV'] == 'development'
2019-09-06 23:40:33 +00:00
domain = ENV.fetch('SUTTY', 'sutty.nl')
config.hosts << domain
2019-09-07 01:00:23 +00:00
config.hosts << "panel.#{domain}"
2019-09-06 23:40:33 +00:00
config.hosts << "api.#{domain}"
end