Browse Source

Fixed the production mode setting

Pedro Figueiredo 12 years ago
parent
commit
8038d2db16
1 changed files with 6 additions and 2 deletions
  1. 6 2
      mojolicious/README.md

+ 6 - 2
mojolicious/README.md

@@ -17,12 +17,16 @@ with nginx, nginx.conf provided)
 
 # Deployment
 
+Set production mode:
+
+    export MOJO_MODE=production
+
 Something along the lines of
 
-    plackup -E production -s Starman --workers=2 -l /tmp/frameworks-benchmark.sock -a ./app.pl
+    plackup -s Starman --workers=2 -l /tmp/frameworks-benchmark.sock -a ./app.pl
 
 if you want to front it with nginx, otherwise
 
-    plackup -E production -s Starman --port 8080 --workers=2 -a ./app.pl
+    plackup -s Starman --port 8080 --workers=2 -a ./app.pl
 
 or the equivalent Morbo or Hypnotoad commands.