module Mumukit::Platform::Domain

Public Class Methods

from_env() click to toggle source
# File lib/mumukit/platform/domain.rb, line 2
def self.from_env
  if ENV['RACK_ENV'] == 'test' || ENV['RAILS_ENV'] == 'test'
    'localmumuki.io'
  else
    ENV['MUMUKI_PLATFORM_DOMAIN'] || 'mumuki.io'
  end
end