aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-06-14 13:41:40 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-06-14 13:41:40 +0100
commit7d43b2d344f0ea273563255e80b8d370e3c6d8f2 (patch)
tree24a4f1bb6a1d571f328f23c360c375e84bb6e7fa
parent2ee3d07d49a28d7560329ba2c71e411b1f3afe74 (diff)
added option to install a theme from a remote URL as part of rails-post-deploy process
-rw-r--r--config/general-example3
-rwxr-xr-xscript/rails-post-deploy5
2 files changed, 8 insertions, 0 deletions
diff --git a/config/general-example b/config/general-example
index 82489c333..a3d1aed2a 100644
--- a/config/general-example
+++ b/config/general-example
@@ -63,4 +63,7 @@ define('OPTION_FRONTPAGE_SEARCH_EXAMPLES', 'Geraldine Quango; Department for Hum
// example public bodies for the home page, semicolon delimited - short_names
define('OPTION_FRONTPAGE_PUBLICBODY_EXAMPLES', 'tgq');
+// URL of theme to install
+define('OPTION_THEME_URL', 'git://github.com/mysociety/whatdotheyknow-theme.git');
+
?>
diff --git a/script/rails-post-deploy b/script/rails-post-deploy
index 164a698e4..1329d9973 100755
--- a/script/rails-post-deploy
+++ b/script/rails-post-deploy
@@ -75,6 +75,11 @@ else
echo "ENV['RAILS_ENV'] = 'development'" > config/rails_env.rb
fi
+if [ -n "$OPTION_THEME_URL" ]
+then
+ script/plugin install --force $OPTION_THEME_URL
+fi
+
# upgrade database
rake db:migrate #--trace