aboutsummaryrefslogtreecommitdiffstats
path: root/script/rails-post-deploy
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-08-29 15:29:11 +0100
committerLouise Crow <louise.crow@gmail.com>2012-08-29 15:29:11 +0100
commitfdc6d51a298626de0aa3ddfc1e3ca27a55049130 (patch)
tree2ed144fb119c950a9f7c8e84d6d44511ca2250e8 /script/rails-post-deploy
parent2186df8ffa2bafc292037133f5cfc386c6372aa8 (diff)
Move the installation of themes to a Rake task so that we can use the ALAVETELI_VERSION constant to check for tags in themes that indicate compatibility with this version of the Alaveteli codebase.
Diffstat (limited to 'script/rails-post-deploy')
-rwxr-xr-xscript/rails-post-deploy28
1 files changed, 1 insertions, 27 deletions
diff --git a/script/rails-post-deploy b/script/rails-post-deploy
index dd2e61877..977805eb5 100755
--- a/script/rails-post-deploy
+++ b/script/rails-post-deploy
@@ -82,33 +82,7 @@ fi
bundle install $bundle_install_options
-function run_post_install {
- NAME=`echo $1 | sed -re 's/.*\/(.*)\.git.?/\1/'`
- POST_INSTALL="vendor/plugins/$NAME/post_install.rb"
- if [ -e $POST_INSTALL ]
- then
- echo "running post install script at $POST_INSTALL..."
- script/runner $POST_INSTALL
- fi
-}
-
-if [ -n "$OPTION_THEME_URLS" ]
-then
- for THEME in "${OPTION_THEME_URLS[@]}"
- do
- echo "Installing $THEME..."
- script/plugin install --force $THEME
- run_post_install $THEME
- done
-fi
-
-# Old version of the above, for backwards compatibility
-if [ -n "$OPTION_THEME_URL" ]
-then
- echo "Installing $OPTION_THEME_URL using deprecated THEME_URL..."
- script/plugin install --force $OPTION_THEME_URL
- run_post_install $OPTION_THEME_URL
-fi
+bundle exec rake themes:install
# upgrade database
bundle exec rake db:migrate #--trace