Browse Source

format cpanfile and add --notest to cpanm

Masahiro Nagano 11 years ago
parent
commit
c07c0f63e4
2 changed files with 7 additions and 2 deletions
  1. 6 1
      plack/cpanfile
  2. 1 1
      plack/setup.py

+ 6 - 1
plack/cpanfile

@@ -1 +1,6 @@
-map requires($_), qw(JSON::XS HTTP::Parser::XS Plack DBI DBD::mysql DBI Starlet);
+requires 'JSON::XS', '3.01';
+requires 'HTTP::Parser::XS', '0.16';
+requires 'Plack', '1.0030';
+requires 'DBI', '1.631';
+requires 'DBD::mysql', '4.027';
+requires 'Starlet', '0.24';

+ 1 - 1
plack/setup.py

@@ -7,7 +7,7 @@ def start(args, logfile, errfile):
   setup_util.replace_text("plack/app.psgi", "localhost", ""+ args.database_host +"")
   try:
     subprocess.check_call("curl -L http://cpanmin.us | perl - App::cpanminus", shell=True, cwd="plack", stderr=errfile, stdout=logfile)
-    subprocess.check_call("cpanm --installdeps .", shell=True, cwd="plack", stderr=errfile, stdout=logfile)
+    subprocess.check_call("cpanm --notest --no-man-pages --installdeps .", shell=True, cwd="plack", stderr=errfile, stdout=logfile)
     pid = subprocess.Popen("plackup -E production -s Starlet -l :8080 --max-keepalive-reqs 5000 --max-reqs-per-child 50000 --min-reqs-per-child 40000 --max-workers=" + str(args.max_threads+4) + " app.psgi", shell=True, cwd="plack", stderr=errfile, stdout=logfile).pid
     open('plack/app.pid', 'w').write(str(pid))
     return 0