Browse Source

verify Trying to keep sinatra from logging 5GB

Mike Smith 11 years ago
parent
commit
f87222ac00
3 changed files with 3 additions and 1 deletions
  1. 1 1
      sinatra/config/nginx.conf
  2. 1 0
      sinatra/public/500.html
  3. 1 0
      sinatra/setup_ruby.py

+ 1 - 1
sinatra/config/nginx.conf

@@ -26,7 +26,7 @@ worker_processes 8;
 # Feel free to change all paths to suite your needs here, of course
 # pid /tmp/nginx.pid;
 #error_log /tmp/nginx.error.log;
-error_log stderr error;
+error_log /dev/null error;
 
 events {
   worker_connections 4096; # increase if you have lots of clients

+ 1 - 0
sinatra/public/500.html

@@ -0,0 +1 @@
+ 

+ 1 - 0
sinatra/setup_ruby.py

@@ -10,6 +10,7 @@ home = expanduser("~")
 
 def start(args, logfile, errfile):
   setup_util.replace_text("sinatra/hello_world.rb", ":host => '.*'", ":host => '" + args.database_host + "'")
+  setup_util.replace_text("sinatra/config/nginx.conf", "/path/to/app/current", home + "/FrameworkBenchmarks/sinatra")
   try:
     subprocess.check_call("rvm ruby-2.0.0-p0 do bundle install --gemfile=Gemfile-ruby", shell=True, cwd="sinatra", stderr=errfile, stdout=logfile)
     subprocess.check_call("cp Gemfile-ruby Gemfile", shell=True, cwd="sinatra", stderr=errfile, stdout=logfile)