From d5856c7ef5c28101f54721a8991d7c1c30860ff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Fri, 12 May 2017 13:20:14 +0200 Subject: [PATCH] Update docker-entrypoint.sh --- containers/zammad-railsserver/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/zammad-railsserver/docker-entrypoint.sh b/containers/zammad-railsserver/docker-entrypoint.sh index b89bb07..bb5f0ce 100644 --- a/containers/zammad-railsserver/docker-entrypoint.sh +++ b/containers/zammad-railsserver/docker-entrypoint.sh @@ -12,13 +12,13 @@ if [ "$1" = 'zammad-railsserver' ]; then cd ${ZAMMAD_DIR} bundle exec rake db:migrate &> /dev/null + bundle exec rails r "Setting.set('es_url', 'http://zammad-elasticsearch:9200')" if [ $? != 0 ]; then echo "creating db & searchindex..." bundle exec rake db:create bundle exec rake db:migrate bundle exec rake db:seed - bundle exec rails r "Setting.set('es_url', 'http://zammad-elasticsearch:9200')" bundle exec rake searchindex:rebuild fi