Sha256: 7d2fec394a03bc712902a8e3e02c3a299270617cf2be6ba84342220dbe117ff9

Contents?: true

Size: 847 Bytes

Versions: 9

Compression:

Stored size: 847 Bytes

Contents

#\ -p 8080 -E none
# The above line is processed by `rackup` for gem users.
# It is ignored if you start the server with `java -jar closure.jar`.
# Changes to this file always require a server restart.
require 'closure'

# Everything in the current folder will be served as root.
Closure.add_source '.', '/'

# Add some useful built-ins.
Closure.add_source :soy, '/soy'
Closure.add_source :docs, '/docs'

# Feel free to use your own compilers.
# Closure.config.compiler_jar = 'closure-compiler/compiler.jar'
# Closure.config.soy_js_jar = 'closure-templates/SoyToJsSrcCompiler.jar'

# Ruby users may need to be specific about which java to use.
# This is not used under JRuby or when running the .jar server.
# Closure.config.java = 'java'

# The Closure middleware and a simple file server.
use Closure::Middleware, 'index'
run Rack::File.new '.'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
closure-1.5.6 scripts/config.ru
closure-1.5.5 scripts/config.ru
closure-1.5.4 scripts/config.ru
closure-1.5.3 scripts/config.ru
closure-1.5.2 scripts/config.ru
closure-1.5.1 scripts/config.ru
closure-1.5.0 scripts/config.ru
closure-1.4.3 scripts/config.ru
closure-1.4.2 scripts/config.ru