Skip to content

Instantly share code, notes, and snippets.

@adamcrown
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamcrown/4436c411be572133619b to your computer and use it in GitHub Desktop.
Save adamcrown/4436c411be572133619b to your computer and use it in GitHub Desktop.
Simple static asset serving rack app
require 'rack'
use Rack::Static, root: 'public'
run -> env { [404, {'Content-Type' => 'text/plain'}, ['404 Not Found']] }
source 'https://rubygems.org'
gem 'rack'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment