Guest User

Untitled

a guest
May 26th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. require "init"
  2.  
  3. Main.set :run, false
  4. Main.set :environment, :production
  5.  
  6. logger = ::File.open("log/production.log", "a+")
  7. STDOUT.reopen(logger)
  8. STDERR.reopen(logger)
  9.  
  10. Main.use Rack::CommonLogger, logger
  11.  
  12. run Main
Add Comment
Please, Sign In to add comment