Commit 2dd3d36dcd336d03c43de953f422d33481555808
1 parent
a700537c
Exists in
master
and in
11 other branches
script/development: always send unicorn to the background
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
script/development
@@ -22,17 +22,17 @@ start() { | @@ -22,17 +22,17 @@ start() { | ||
22 | ./script/delayed_job start | 22 | ./script/delayed_job 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 | ||
26 | + touch log/development.log | ||
25 | if [ -z "$RAILS_RELATIVE_URL_ROOT" ]; then | 27 | if [ -z "$RAILS_RELATIVE_URL_ROOT" ]; then |
26 | - unicorn_rails --config-file lib/noosfero/unicorn.rb $@ | 28 | + unicorn_rails --config-file lib/noosfero/unicorn.rb --daemonize $@ |
27 | else | 29 | else |
28 | - mkdir -p log | ||
29 | - touch log/development.log | ||
30 | unicorn_rails \ | 30 | unicorn_rails \ |
31 | --path "$RAILS_RELATIVE_URL_ROOT" \ | 31 | --path "$RAILS_RELATIVE_URL_ROOT" \ |
32 | --config-file lib/noosfero/unicorn.rb \ | 32 | --config-file lib/noosfero/unicorn.rb \ |
33 | --daemonize | 33 | --daemonize |
34 | - tail -n 0 -f log/development.log || true | ||
35 | fi | 34 | fi |
35 | + tail -n 0 -f log/development.log || true | ||
36 | } | 36 | } |
37 | 37 | ||
38 | start $@ | 38 | start $@ |