Guest User

Untitled

a guest
Oct 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. # put this in your .zshrc or .bashrc
  2. alias serve="thin -R ~/.static.ru start"
  3.  
  4. # put this in ~/.static.ru
  5. root=Dir.pwd
  6. puts ">>> Serving: #{root}"
  7. run Rack::Directory.new("#{root}")
  8.  
  9. # Then just cd into a directory, and run "serve" to start serving that dir
  10. # requires that you gem install thin and rack
Add Comment
Please, Sign In to add comment