Sha256: 95626cbd855200f6f9983faa17e111d28387b8686f948d62753b9145c229015a

Contents?: true

Size: 441 Bytes

Versions: 2

Compression:

Stored size: 441 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require "waylon/core"

logger = Logger.new($stdout)
logger.level = Logger::INFO
action = ARGV[0]

case action
when "worker"
  logger.info "Starting Worker..."
  ENV["INTERVAL"] ||= "0.5"
  ENV["QUEUE"] ||= "senses,skills"
  exec "bundle exec rake resque:work"
when "web"
  logger.info "Starting Web..."
  exec "bundle exec puma"
else
  logger.fatal "Unknown action: #{action}"
  exit 1
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
waylon-0.2.0 exe/waylon
waylon-0.1.9 exe/waylon