debian-mirror-gitlab/config/initializers/rails_host_authorization_gitpod.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
196 B
Ruby
Raw Permalink Normal View History

2021-01-03 14:25:43 +05:30
# 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