Guest User

Untitled

a guest
Jun 17th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. ## rack.ru [ruby]
  2.  
  3. use Rack::CommonLogger
  4. use Rack::ShowExceptions
  5.  
  6. map "/flytrap" do
  7. use Rack::Lint
  8.  
  9. headers = {
  10. 'Content-Type' => 'text/plain',
  11. 'Content-Length' => '2'
  12. }
  13.  
  14. lambda {|env| [200, headers, 'Hi']}
  15. end
  16.  
  17. ## thin.yml [yaml]
  18.  
  19. ---
  20. log: log/thin.log
  21. pid: tmp/thin.pid
  22. address: 127.0.0.1
  23. port: 80
  24. servers: 1
  25. rackup: config/rack.ru
Add Comment
Please, Sign In to add comment