Commit 2dd3d36dcd336d03c43de953f422d33481555808

Authored by Antonio Terceiro
1 parent a700537c

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 22 ./script/delayed_job start
23 23 trap stop INT TERM EXIT
24 24 whenever --write-crontab --set 'environment=development'
  25 + mkdir -p log
  26 + touch log/development.log
25 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 29 else
28   - mkdir -p log
29   - touch log/development.log
30 30 unicorn_rails \
31 31 --path "$RAILS_RELATIVE_URL_ROOT" \
32 32 --config-file lib/noosfero/unicorn.rb \
33 33 --daemonize
34   - tail -n 0 -f log/development.log || true
35 34 fi
  35 + tail -n 0 -f log/development.log || true
36 36 }
37 37  
38 38 start $@
... ...