Sha256: f0d2d8202c372b530cc3a8d24bc1e3a2e576c740693c93f90bb0f31384aee962

Contents?: true

Size: 503 Bytes

Versions: 16

Compression:

Stored size: 503 Bytes

Contents

#!/usr/bin/env ruby
lib = File.dirname(__FILE__) + '/../lib'
require lib + '/server'
require 'optparse'

options = {}

op = OptionParser.new
op.banner = "Usage: cd ~/sites/my-glorious-app; vitrine -p 9292"
op.on("-p", "--port NUMBER", Integer, "Run on the specified port (default is 9292)") do | port |
  options[:port] = port
end

op.on("-r", "--root DIR", String, "Override the root directory (defaults to CWD)") do | rootdir |
  options[:root] = rootdir
end

op.parse!

Vitrine::Server.start(options)

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
vitrine-0.0.31 bin/vitrine
vitrine-0.0.30 bin/vitrine
vitrine-0.0.29 bin/vitrine
vitrine-0.0.28 bin/vitrine
vitrine-0.0.27 bin/vitrine
vitrine-0.0.26 bin/vitrine
vitrine-0.0.25 bin/vitrine
vitrine-0.0.24 bin/vitrine
vitrine-0.0.23 bin/vitrine
vitrine-0.0.22 bin/vitrine
vitrine-0.0.21 bin/vitrine
vitrine-0.0.19 bin/vitrine
vitrine-0.0.18 bin/vitrine
vitrine-0.0.17 bin/vitrine
vitrine-0.0.16 bin/vitrine
vitrine-0.0.15 bin/vitrine