Sha256: 6c657748b5f75645f6395d56c4b94454071fea65cb641be0d6afb5390120d7ae

Contents?: true

Size: 503 Bytes

Versions: 3

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 4000)") 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

3 entries across 3 versions & 1 rubygems

Version Path
vitrine-0.0.14 bin/vitrine
vitrine-0.0.13 bin/vitrine
vitrine-0.0.12 bin/vitrine