no need to run the websocket server if redis isn't running (in single_process_mode)

This commit is contained in:
danielgrippi 2011-05-17 10:10:20 -07:00
parent 18859a2fba
commit 934a91e47e

View file

@ -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