Skip to content

Commit

Permalink
Add explicit access and error logs for starman, and set number of wor…
Browse files Browse the repository at this point in the history
…kers via wre.conf
  • Loading branch information
perlDreamer committed Jan 1, 2012
1 parent 9cccbd2 commit 2ae6991
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wre/lib/WRE/Starman.pm
Expand Up @@ -119,6 +119,9 @@ sub start {
. " --port=" . $config->get("starman/port")
. " starman" #Beginning of the starman specific configurations
. " --preload=" . $config->get("webgui/root") . "/app.psgi"
. " --access-log=" . $config->getRoot("var/logs/starman.log")
. " --error-log=" . $config->getRoot("var/logs/starman_error.log")
. " --workers=" . $config->get("starman/workers")
;
`$cmd`; # catch command line output
while ($count++ < 10 && !$success) {
Expand Down
1 change: 1 addition & 0 deletions wre/var/setupfiles/wre.conf
Expand Up @@ -23,6 +23,7 @@
"connectionTimeout" : 30,
"defaultHostname" : "localhost",
"port" : 8081,
"workers" : 10
},

# nginx
Expand Down

0 comments on commit 2ae6991

Please sign in to comment.