gitlabhq/grack

View on GitHub
bin/testserver

Summary

Maintainability
Test Coverage
#! /usr/bin/env ruby
libdir = File.absolute_path( File.join( File.dirname(__FILE__), '../lib' ) )
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)

require 'grack'
require 'rack'
root = File.absolute_path( File.join( File.dirname(__FILE__), '../examples' ) )
app = Grack::Server.new({
    project_root: root,
    upload_pack: true,
    receive_pack:true
})

Rack::Server.start app: app, Port: 3001