module Roda::BIN

Constants

VERSION

Public Instance Methods

envs() click to toggle source
# File lib/roda/bin.rb, line 28
def envs
  @envs ||= {}
end
server() click to toggle source
# File lib/roda/bin.rb, line 8
def server
  args = [
    'thin', 'start', '--threaded', '--max-persistent-conns', '300',
    "--max-conns", "400", "-p", "8080"
  ].concat(argv)

  options = {
    cmd: args.join(' '),
    signal: 'TERM',
    background: true,
    growl: false,
    name: 'Roda Server',
    ignore: [],
    dir: ["."],
    pattern: "{Gemfile,Gemfile.lock,.gems,.bundle,.env*,config.ru,Rakefile,**/*.{rb,js,coffee,css,scss,sass,styl,erb,html,haml,ru,yml,slim,md,mab,rake}}"
  }

  Rerun::Runner.keep_running(options[:cmd], options)
end

Private Instance Methods

argv() click to toggle source
# File lib/roda/bin.rb, line 34
def argv
  @argv ||= begin
    ARGV.shift
    ARGV
  end
end