Browse Source

Help place find it's TROOT

Hamilton Turner 11 years ago
parent
commit
4c854583c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/Perl/plack/setup.py

+ 1 - 1
frameworks/Perl/plack/setup.py

@@ -8,7 +8,7 @@ import getpass
 def start(args, logfile, errfile):
   setup_util.replace_text("plack/app.psgi", "localhost", args.database_host)
   setup_util.replace_text("plack/nginx.conf", "USR", getpass.getuser())
-  setup_util.replace_text("plack/nginx.conf", "server unix:.*\/FrameworkBenchmarks", "server unix:" + args.fwroot)
+  setup_util.replace_text("plack/nginx.conf", "server unix:.*\/FrameworkBenchmarks/plack", "server unix:" + args.troot)
   try:
     subprocess.Popen("start_server --backlog=16384 --pid-file=$TROOT/app.pid --path=$TROOT/app.sock -- plackup -E production -s Starlet --max-keepalive-reqs 1000 --max-reqs-per-child 50000 --min-reqs-per-child 40000 --max-workers=" + str(args.max_threads+4) + " -a $TROOT/app.psgi", shell=True, cwd="plack", stderr=errfile, stdout=logfile)
     subprocess.check_call("sudo /usr/local/nginx/sbin/nginx -c $TROOT/nginx.conf", shell=True,stderr=errfile, stdout=logfile)