Class: GDK::Services::RailsWeb

Inherits:
Base
  • Object
show all
Defined in:
lib/gdk/services/rails_web.rb

Overview

Rails web frontend server

Instance Method Summary collapse

Methods inherited from Base

#initialize, #procfile_entry, #ready_message

Constructor Details

This class inherits a constructor from GDK::Services::Base

Instance Method Details

#commandObject



11
12
13
# File 'lib/gdk/services/rails_web.rb', line 11

def command
  %(support/exec-cd gitlab bin/web start_foreground)
end

#enabled?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/gdk/services/rails_web.rb', line 15

def enabled?
  config.rails_web?
end

#envObject



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/gdk/services/rails_web.rb', line 19

def env
  e = {
    CACHE_CLASSES: config.gitlab.cache_classes,
    BUNDLE_GEMFILE: config.gitlab.rails.bundle_gemfile,
    ENABLE_BOOTSNAP: config.gitlab.rails.bootsnap?,
    RAILS_ENV: 'development',
    RAILS_RELATIVE_URL_ROOT: config.relative_url_root,
    ACTION_CABLE_IN_APP: 'true',
    ACTION_CABLE_WORKER_POOL_SIZE: config.action_cable.worker_pool_size,
    GITALY_DISABLE_REQUEST_LIMITS: config.gitlab.gitaly_disable_request_limits
  }

  e[:GDK_GEO_SECONDARY] = 1 if config.geo? && config.geo.secondary?

  e
end

#nameObject



7
8
9
# File 'lib/gdk/services/rails_web.rb', line 7

def name
  'rails-web'
end