aboutsummaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rwxr-xr-xscript/annotate-models5
-rwxr-xr-xscript/rails-post-deploy15
2 files changed, 18 insertions, 2 deletions
diff --git a/script/annotate-models b/script/annotate-models
new file mode 100755
index 000000000..b6e01c010
--- /dev/null
+++ b/script/annotate-models
@@ -0,0 +1,5 @@
+#!/bin/bash
+#
+# annotates the models in app/ with schema information
+
+bundle exec annotate -m -p before --exclude tests,fixtures
diff --git a/script/rails-post-deploy b/script/rails-post-deploy
index 4edabc9a7..575b995f9 100755
--- a/script/rails-post-deploy
+++ b/script/rails-post-deploy
@@ -76,13 +76,24 @@ fi
if [ "$OPTION_STAGING_SITE" = "0" ]
then
- bundle install --without development:test --deployment
+ bundle exec bundle install --without development:test --deployment
else
- bundle install
+ bundle exec bundle install
fi
+if [ -n "$OPTION_THEME_URLS" ]
+then
+ for THEME in "${OPTION_THEME_URLS[@]}"
+ do
+ echo "Installing $THEME..."
+ script/plugin install --force $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
fi