Skip to content

Instantly share code, notes, and snippets.

@rojotek
Created March 27, 2014 08:13
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 rojotek/9802720 to your computer and use it in GitHub Desktop.
Save rojotek/9802720 to your computer and use it in GitHub Desktop.
Start thin server in a thread.
thin_server = Thread.start do
Thin::Server.start('0.0.0.0', 4567) do
run Rack::Directory.new( File.join(Dir.pwd,"seed-images") )
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment