diff options
author | danielgrippi <danielgrippi@gmail.com> | 2011-05-17 21:10:20 +0400 |
---|---|---|
committer | danielgrippi <danielgrippi@gmail.com> | 2011-05-17 21:10:20 +0400 |
commit | 934a91e47edf5c0d8c43a4e57b2694ac115adb57 (patch) | |
tree | b13143f2e53d0ade217c9ca06d2ab3d03b53661b /script | |
parent | 18859a2fba4980560264a923c6432f590b74165e (diff) |
no need to run the websocket server if redis isn't running (in single_process_mode)
Diffstat (limited to 'script')
-rwxr-xr-x | script/server | 3 |
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 |