Răsfoiți Sursa

updated dependencies

Joel Berger 11 ani în urmă
părinte
comite
4eaa6b4c6c
2 a modificat fișierele cu 8 adăugiri și 14 ștergeri
  1. 7 13
      mojolicious/README.md
  2. 1 1
      toolset/setup/linux/installer.py

+ 7 - 13
mojolicious/README.md

@@ -1,20 +1,15 @@
 # Setup
 
 * Perl 5.16.3
-* MySQL 5.5
+* MongoDB 2.4.9
 * Wrk 2.0
 
 # Requirements
 
 * Mojolicious
+* Mango
 * JSON::XS
-* DBI
-* DBD::mysql
-* Starman (if using Starman as web server)
-* Plack (for plackup)
-* nginx (if you want to front Mojolicious
-with nginx, nginx.conf provided)
-* Morbo and Hypnotoad provided by Mojolicious
+* Hypnotoad provided by Mojolicious
 
 # Deployment
 
@@ -22,12 +17,11 @@ Set production mode:
 
     export MOJO_MODE=production
 
-Something along the lines of
+Start with Mojolicious' non-blocking preforking server
 
-    plackup -s Starman --workers=8 -l /tmp/frameworks-benchmark.sock -a ./app.pl
+    hypnotoad app.pl
 
-if you want to front it with nginx, otherwise
+To stop again, simply run
 
-    plackup -s Starman --port 8080 --workers=8 -a ./app.pl
+    hypnotoad -s app.pl
 
-or the equivalent Morbo or Hypnotoad commands.

+ 1 - 1
toolset/setup/linux/installer.py

@@ -119,7 +119,7 @@ class Installer:
     self.__run_command("sudo ./install.sh --license-accepted --prefix /opt/ActivePerl-5.16 --no-install-html", cwd="ActivePerl-5.16.3.1603-x86_64-linux-glibc-2.3.5-296746", send_yes=True, retry=True)
     self.__download("http://cpanmin.us", "cpanminus.pl")
     self.__run_command("perl cpanminus.pl --sudo App::cpanminus", retry=True)
-    self.__run_command("cpanm -f -S DBI DBD::mysql Kelp Dancer Mojolicious Kelp::Module::JSON::XS Dancer::Plugin::Database Starman Plack JSON Web::Simple DBD::Pg JSON::XS EV HTTP::Parser::XS Monoceros EV IO::Socket::IP IO::Socket::SSL", retry=True)
+    self.__run_command("cpanm -f -S DBI DBD::mysql Kelp Dancer Mojolicious Mango Kelp::Module::JSON::XS Dancer::Plugin::Database Starman Plack JSON Web::Simple DBD::Pg JSON::XS EV HTTP::Parser::XS Monoceros EV IO::Socket::IP IO::Socket::SSL", retry=True)
     self.__run_command("sudo rm /usr/bin/perl")
 
     #