Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authordanielgrippi <danielgrippi@gmail.com>2011-05-17 21:10:20 +0400
committerdanielgrippi <danielgrippi@gmail.com>2011-05-17 21:10:20 +0400
commit934a91e47edf5c0d8c43a4e57b2694ac115adb57 (patch)
treeb13143f2e53d0ade217c9ca06d2ab3d03b53661b /script
parent18859a2fba4980560264a923c6432f590b74165e (diff)
no need to run the websocket server if redis isn't running (in single_process_mode)
Diffstat (limited to 'script')
-rwxr-xr-xscript/server3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/server b/script/server
index 8b6270b75..b65e087c9 100755
--- a/script/server
+++ b/script/server
@@ -169,9 +169,10 @@ if [ ! -e 'public/assets/default.css' ]; then
fi
mkdir -p -v log/thin/
-bundle exec ruby ./script/websocket_server.rb&
if [ "$(./script/get_config.rb single_process_mode $RAILS_ENV)" = "false" ]; then
redis-server config/redis.conf &>log/redis-console.log &
QUEUE=* bundle exec rake resque:work&
+
+ bundle exec ruby ./script/websocket_server.rb&
fi
bundle exec thin start $args