Welcome to mirror list, hosted at ThFree Co, Russian Federation.

rails_host_authorization_gitpod.rb « initializers « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0c1822bc91a8d7f83cc5b222b77c0eae34131fc4 (plain)
1
2
3
4
5
6
# 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