diff options
-rw-r--r-- | config/general-example | 3 | ||||
-rwxr-xr-x | script/rails-post-deploy | 5 |
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 |