Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # put this in your .zshrc or .bashrc
- alias serve="thin -R ~/.static.ru start"
- # put this in ~/.static.ru
- root=Dir.pwd
- puts ">>> Serving: #{root}"
- run Rack::Directory.new("#{root}")
- # Then just cd into a directory, and run "serve" to start serving that dir
- # requires that you gem install thin and rack
Add Comment
Please, Sign In to add comment