Commit a0b02c3df507588949a5285b98679c0883cbf160
1 parent
5bfbabf9
Exists in
web_steps_improvements
and in
11 other branches
script/development: also display API log
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
script/development
@@ -23,7 +23,7 @@ start() { | @@ -23,7 +23,7 @@ start() { | ||
23 | trap stop INT TERM EXIT | 23 | trap stop INT TERM EXIT |
24 | whenever --write-crontab --set 'environment=development' | 24 | whenever --write-crontab --set 'environment=development' |
25 | mkdir -p log | 25 | mkdir -p log |
26 | - touch log/development.log | 26 | + touch log/development.log log/development_api.log |
27 | if [ -z "$RAILS_RELATIVE_URL_ROOT" ]; then | 27 | if [ -z "$RAILS_RELATIVE_URL_ROOT" ]; then |
28 | unicorn_rails --config-file lib/noosfero/unicorn.rb --daemonize $@ | 28 | unicorn_rails --config-file lib/noosfero/unicorn.rb --daemonize $@ |
29 | else | 29 | else |
@@ -32,7 +32,7 @@ start() { | @@ -32,7 +32,7 @@ start() { | ||
32 | --config-file lib/noosfero/unicorn.rb \ | 32 | --config-file lib/noosfero/unicorn.rb \ |
33 | --daemonize | 33 | --daemonize |
34 | fi | 34 | fi |
35 | - tail -n 0 -f log/development.log || true | 35 | + tail -n 0 -f log/development.log log/development_api.log || true |
36 | } | 36 | } |
37 | 37 | ||
38 | start $@ | 38 | start $@ |