Merge branch 'next-minor' into develop
This commit is contained in:
commit
a2ca74265c
2 changed files with 16 additions and 1 deletions
|
|
@ -13,6 +13,7 @@
|
||||||
## Bug fixes
|
## Bug fixes
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
* Check if redis is running in script/server [#7685](https://github.com/diaspora/diaspora/pull/7685)
|
||||||
|
|
||||||
# 0.7.2.0
|
# 0.7.2.0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,8 @@ vars=$(bin/bundle exec ruby ./script/get_config.rb \
|
||||||
workers=server.sidekiq_workers \
|
workers=server.sidekiq_workers \
|
||||||
chat=chat.enabled \
|
chat=chat.enabled \
|
||||||
chat_server=chat.server.enabled \
|
chat_server=chat.server.enabled \
|
||||||
chat_bosh_proxy=chat.server.bosh.proxy
|
chat_bosh_proxy=chat.server.bosh.proxy \
|
||||||
|
redis_url=environment.redis
|
||||||
)
|
)
|
||||||
on_failure "Couldn't parse config/diaspora.yml!"
|
on_failure "Couldn't parse config/diaspora.yml!"
|
||||||
eval "$vars"
|
eval "$vars"
|
||||||
|
|
@ -158,6 +159,19 @@ application, run:
|
||||||
bin/rake assets:precompile"
|
bin/rake assets:precompile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check if redis is running
|
||||||
|
if [ "$single_process_mode" = "false" ]
|
||||||
|
then
|
||||||
|
if [ -n "$redis_url" ]
|
||||||
|
then
|
||||||
|
redis_param="url: '$redis_url'"
|
||||||
|
fi
|
||||||
|
if [ "$(bin/bundle exec ruby -e "require 'redis'; puts Redis.new($redis_param).ping" 2> /dev/null)" != "PONG" ]
|
||||||
|
then
|
||||||
|
fatal "Can't connect to redis. Please check if it's running and if environment.redis is configured correctly in config/diaspora.yml."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Check for old curl versions (see https://github.com/diaspora/diaspora/issues/4202)
|
# Check for old curl versions (see https://github.com/diaspora/diaspora/issues/4202)
|
||||||
if [ `curl -V | grep AsynchDNS | wc -l` -ne 1 ]
|
if [ `curl -V | grep AsynchDNS | wc -l` -ne 1 ]
|
||||||
then
|
then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue