serve-this

Serve the contents of the current directory, like it was running on a server.

Example

$ serve-this
*****
serving ~/some/directory on port 9292

$ serve-this --rackup
*****
creating a Gemfile and config.ru
this directory is now a rack app!

Push it to Heroku!

Gemfile

  source :rubygems
  gem "serve-this"

config.ru

  require 'rubygems'
  require 'bundler'
  Bundler.require

  run ServeThis.from(Dir.pwd)

Note

this doesnt work yet!