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:15:08 +0400
committerdanielgrippi <danielgrippi@gmail.com>2011-05-17 21:34:40 +0400
commit1bdfd770b7f3b964f5b5aa665410c16d4f738e04 (patch)
treea70d5969d4f2ad876999633a5f62a7e3e913977e /script
parent5218bd89c61a5a3effe05481795511051b8accc6 (diff)
check for redis only if not in single process mode
Diffstat (limited to 'script')
-rwxr-xr-xscript/server5
1 files changed, 2 insertions, 3 deletions
diff --git a/script/server b/script/server
index b65e087c9..714cb8177 100755
--- a/script/server
+++ b/script/server
@@ -122,9 +122,6 @@ if [ -n "$services" ]; then
exit 64
fi
-redis_config
-
-
# Force AGPL
if [ -w public -a ! -e public/source.tar.gz ]; then
branch=$( git branch | awk '/^[*]/ {print $2}')
@@ -170,7 +167,9 @@ fi
mkdir -p -v log/thin/
if [ "$(./script/get_config.rb single_process_mode $RAILS_ENV)" = "false" ]; then
+ redis_config
redis-server config/redis.conf &>log/redis-console.log &
+
QUEUE=* bundle exec rake resque:work&
bundle exec ruby ./script/websocket_server.rb&