From 18f067ea60c40cac53956b4fd3f57c097ffe8897 Mon Sep 17 00:00:00 2001 From: wvengen Date: Fri, 14 Jun 2013 03:10:32 +0200 Subject: [PATCH] make localeapp updates work in production environment too --- script/heroku_deploy | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/script/heroku_deploy b/script/heroku_deploy index 2a5c0cda..ca5ad9d3 100755 --- a/script/heroku_deploy +++ b/script/heroku_deploy @@ -81,9 +81,8 @@ else Foodsoft::Application.config.secret_token = '`openssl rand -hex 128`' EOF fi -# special environment hooks +# configure localeapp, manually to include environment if [ "$LOCALEAPP_KEY" ]; then - # configure localeapp, manually to include environment cat >config/initializers/localeapp.rb </dev/null 2>&1; then else heroku run rake db:migrate fi +# get full translations so update works +[ "$LOCALEAPP_KEY" ] && heroku run localeapp pull + +# restart just to be sure +heroku ps:restart # return to original branch git checkout -q "$ORIG_BRANCH" && git stash pop -q