Sha256: 06dff6b824262211630531e720f2e6fb85a42ddf01e02922fdfd82e5ff60c6cf

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

#!/usr/bin/env ruby

require 'thin'

# WpaCliWeb daemon command line interface script.
# Run wpa_cli_web -h to get more usage.
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'wpa_cli_web.rb'))
rackup_file = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'wpa_cli_web', 'config.ru'))

argv = ARGV
argv << ["-R", rackup_file] unless ARGV.include?("-R")
argv << ["-p", "3000"] unless ARGV.include?("-p")
argv << ["-e", "production"] unless ARGV.include?("-e")
Thin::Runner.new(argv.flatten).run!

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wpa_cli_web-0.0.11 bin/wpa_cli_web