Skip to content

Commit 2ae6991

Browse files
committedJan 1, 2012
Add explicit access and error logs for starman, and set number of workers via wre.conf
1 parent 9cccbd2 commit 2ae6991

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎wre/lib/WRE/Starman.pm

+3
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ sub start {
119119
. " --port=" . $config->get("starman/port")
120120
. " starman" #Beginning of the starman specific configurations
121121
. " --preload=" . $config->get("webgui/root") . "/app.psgi"
122+
. " --access-log=" . $config->getRoot("var/logs/starman.log")
123+
. " --error-log=" . $config->getRoot("var/logs/starman_error.log")
124+
. " --workers=" . $config->get("starman/workers")
122125
;
123126
`$cmd`; # catch command line output
124127
while ($count++ < 10 && !$success) {

‎wre/var/setupfiles/wre.conf

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"connectionTimeout" : 30,
2424
"defaultHostname" : "localhost",
2525
"port" : 8081,
26+
"workers" : 10
2627
},
2728

2829
# nginx

0 commit comments

Comments
 (0)
Please sign in to comment.