Sha256: b07104832626728238d0f47afb3a7c4cc26c5dfb40059b0f106bda51cd04e544
Contents?: true
Size: 624 Bytes
Versions: 13
Compression:
Stored size: 624 Bytes
Contents
desc 'server [PORT]', 'Start a development server' option :port, :aliases => '-p', :default => '3000', :desc => 'Choose a port' option :public, :aliases => '-P', :type => :boolean, :desc => 'Make the server accessible in the local network' def server(port = nil) invoke_cmd 'bundle_install' require 'geordi/util' announce 'Booting a development server' port ||= options.port note "URL: http://#{ File.basename(Dir.pwd) }.vcap.me:#{port}" puts command = Util.server_command command << ' -b 0.0.0.0' if options.public command << ' -p ' << port Util.system! command end map 'devserver' => 'server'
Version data entries
13 entries across 13 versions & 1 rubygems