From 2dd3d36dcd336d03c43de953f422d33481555808 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 9 Nov 2015 14:08:02 -0200 Subject: [PATCH] script/development: always send unicorn to the background --- script/development | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/development b/script/development index de6f05e..95a409c 100755 --- a/script/development +++ b/script/development @@ -22,17 +22,17 @@ start() { ./script/delayed_job start trap stop INT TERM EXIT whenever --write-crontab --set 'environment=development' + mkdir -p log + touch log/development.log if [ -z "$RAILS_RELATIVE_URL_ROOT" ]; then - unicorn_rails --config-file lib/noosfero/unicorn.rb $@ + unicorn_rails --config-file lib/noosfero/unicorn.rb --daemonize $@ else - mkdir -p log - touch log/development.log unicorn_rails \ --path "$RAILS_RELATIVE_URL_ROOT" \ --config-file lib/noosfero/unicorn.rb \ --daemonize - tail -n 0 -f log/development.log || true fi + tail -n 0 -f log/development.log || true } start $@ -- libgit2 0.21.2