瀏覽代碼

Fixed the production mode setting

Pedro Figueiredo 12 年之前
父節點
當前提交
c93f4ac819
共有 1 個文件被更改,包括 6 次插入2 次删除
  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.