Method: Orchestration::DockerCompose::AppService.command

Defined in:
lib/orchestration/docker_compose/app_service.rb

.commandObject



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/orchestration/docker_compose/app_service.rb', line 12

def command
  server = env.web_server
  %w[bundle exec] + case env.web_server
                    when 'puma'
                      %w[puma -C config/puma.rb]
                    when 'unicorn'
                      %w[unicorn -c config/unicorn.rb]
                    else
                      unsupported_web_server(server)
                    end
end