7 lines
196 B
Ruby
7 lines
196 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
if Rails.env.development? && ENV['GITPOD_WORKSPACE_ID'].present?
|
||
|
gitpod_host = URI(`gp url 3000`.strip).host
|
||
|
Rails.application.config.hosts += [gitpod_host]
|
||
|
end
|