no need to run the websocket server if redis isn't running (in single_process_mode)
This commit is contained in:
parent
18859a2fba
commit
934a91e47e
1 changed files with 2 additions and 1 deletions
|
|
@ -169,9 +169,10 @@ if [ ! -e 'public/assets/default.css' ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p -v log/thin/
|
mkdir -p -v log/thin/
|
||||||
bundle exec ruby ./script/websocket_server.rb&
|
|
||||||
if [ "$(./script/get_config.rb single_process_mode $RAILS_ENV)" = "false" ]; then
|
if [ "$(./script/get_config.rb single_process_mode $RAILS_ENV)" = "false" ]; then
|
||||||
redis-server config/redis.conf &>log/redis-console.log &
|
redis-server config/redis.conf &>log/redis-console.log &
|
||||||
QUEUE=* bundle exec rake resque:work&
|
QUEUE=* bundle exec rake resque:work&
|
||||||
|
|
||||||
|
bundle exec ruby ./script/websocket_server.rb&
|
||||||
fi
|
fi
|
||||||
bundle exec thin start $args
|
bundle exec thin start $args
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue