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