aboutsummaryrefslogtreecommitdiffstats
path: root/script
Commit message (Collapse)AuthorAgeLines
* Don't install debug gems for CIGareth Rees2014-05-06-1/+1
|
* Rename develop Gemfile group to debugGareth Rees2014-05-06-1/+1
| | | | Develop is too similar to development to mean anything different.
* Merge branch 'issues/762-travis-before-install' into rails-3-developGareth Rees2014-05-06-3/+4341
|\
| * Use WAD to cache bundles to Amazon S3Gareth Rees2014-05-02-3/+4341
| | | | | | | | https://github.com/Fingertips/WAD
* | Fix formatting of compact-xapian-databaseGareth Rees2014-04-14-14/+17
| |
* | Suppress non-error output compact-xapian-databaseGareth Rees2014-04-14-3/+5
|/ | | | Cron sends an email for all output, whereas generally we only want to get an email if the command exited in error.
* Allow the location of the bundle to be configuredGareth Rees2014-03-11-3/+9
| | | | | | | - Sets vendor/bundle as default - Uses $HOME/bundle when generating general.yml Based on d9f162c8ab08cb881cd68a3eee900c52c63cb1ae
* Merge branch 'hotfix/0.16.0.8' into rails-3-developLouise Crow2014-03-03-1/+2
|\
| * Set the blackhole address as the return path for import error messages.hotfix/0.16.0.8Louise Crow2014-02-28-1/+2
| | | | | | | | | | Also send them directly to the non-bounce address, don't pipe them through mailin again.
* | Merge branch 'feature/batch-requests' into rails-3-developLouise Crow2014-01-29-0/+4
|\ \ | | | | | | | | | | | | | | | Conflicts: config/general.yml-example spec/factories.rb
| * | Send batch requests as a cron job.Louise Crow2013-12-04-0/+4
| | |
* | | Merge branch 'hotfix/0.16.0.6' into rails-3-developLouise Crow2014-01-28-2/+2
|\ \ \ | | |/ | |/|
| * | Set blog and twitter params to empty string0.16.0.6hotfix/0.16.0.6Louise Crow2014-01-28-2/+2
| | | | | | | | | | | | | | | This is the default value from lib/configuration.rb if they aren't set and null values cause errors when .empty? is called on them.
* | | Merge branch 'release/0.16' into rails-3-developLouise Crow2014-01-24-90/+241
|\| |
| * | Add a script to switch mySociety deployments to using shared filesMark Longair2014-01-23-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is required by our switch to timestamped-based deploys. There are certain files and directories (e.g. cache, the Xapian databases, generated graphs) that should be shared between deployments, rather than recreating them when creating the next deployment in a new directory. This script should be run as a one-off before switching an instance to using timestamped deploys, to ensure that the existing data is stored in the shared subdirectory of the vhost directory, so that any future deployment can simply create symlinks into the shared directory.
| * | Add the SHARED_FILES_PATH, SHARED_FILES & SHARED_DIRECTORIES optionsMark Longair2014-01-22-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is to support sharing various files between multiple deployments of Alaveteli. If you have set SHARED_FILES_PATH, SHARED_FILES and SHARED_DIRECTORIES then the rails-deploy-before-down script will ensure that a symlink is created from each of the files or directories mentioned in SHARED_FILES and SHARED_DIRECTORIES to a corresponding path within SHARED_FILES_PATH.
| * | Split rails-post-deploy into rails-deploy-(before|while)-downMark Longair2014-01-22-90/+123
| | |
* | | Rewrite myhostname in /etc/postfix/main.cf in the install scriptMark Longair2013-12-10-0/+5
|/ / | | | | | | | | | | | | This is necessary because the install script is also run on creating a new EC2 instance from the AMI in order to update the configuration with the new internal and external names; the hostname will be different in this case and otherwise myhostname wouldn't be rewritten.
* | Merge branch 'feature/switch-theme-none-option' into rails-3-developMark Longair2013-12-05-8/+17
|\ \ | |/ |/| | | | | Conflicts: script/switch-theme.rb
| * Update the switch-theme.rb script allow switching to no themeMark Longair2013-11-25-8/+17
| |
* | Precompile assets only for production.Louise Crow2013-12-03-1/+4
| | | | | | | | | | Conflicts: script/rails-post-deploy
* | Move themes from vendor/plugins to lib/themesMark Longair2013-12-03-1/+1
| | | | | | | | | | | | | | | | | | | | These are essentially required in exactly the same way as before, but from lib/themes rather than vendor/plugins. This is the simplest possible change in order make the themes work outside vendor/plugins, I think, but it's not necessarily ideal. It would be worth considering whether these should be changed to Rails engines, as described here: http://guides.rubyonrails.org/engines.html
* | Move acts_as_xapian out of vendor/pluginsMark Longair2013-11-29-1/+1
| | | | | | | | | | This includes making making sure that xapiandbs directory is moved with this version of the code.
* | With Rails 3.2, switching theme requires asset recompilationMark Longair2013-11-29-1/+5
| |
* | Merge branch 'feature/rails-3-2-upgrade-spike' into ↵Mark Longair2013-11-29-0/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | feature/switch-to-asset-pipeline Conflicts: Gemfile.lock app/assets/images/admin-theme/ui-bg_flat_0_aaaaaa_40x100.png app/assets/images/admin-theme/ui-bg_flat_55_fbf9ee_40x100.png app/assets/images/admin-theme/ui-bg_flat_65_ffffff_40x100.png app/assets/images/admin-theme/ui-bg_flat_75_cccccc_40x100.png app/assets/images/admin-theme/ui-bg_flat_75_dadada_40x100.png app/assets/images/admin-theme/ui-bg_flat_75_e6e6e6_40x100.png app/assets/images/admin-theme/ui-bg_flat_75_ffffff_40x100.png app/assets/images/admin-theme/ui-bg_inset-soft_95_fef1ec_1x100.png app/assets/images/admin-theme/ui-icons_222222_256x240.png app/assets/images/admin-theme/ui-icons_2e83ff_256x240.png app/assets/images/admin-theme/ui-icons_454545_256x240.png app/assets/images/admin-theme/ui-icons_888888_256x240.png app/assets/images/admin-theme/ui-icons_cd0a0a_256x240.png app/assets/javascripts/admin.js app/assets/javascripts/admin/jquery-ui.min.js app/assets/javascripts/application.js app/assets/javascripts/jquery-ui.min.js app/assets/javascripts/jquery.flot.errorbars.min.js app/assets/javascripts/jquery.flot.min.js app/assets/javascripts/stats.js app/assets/stylesheets/application.css app/assets/stylesheets/fonts.scss app/views/general/_stylesheet_includes.html.erb app/views/layouts/admin.html.erb app/views/layouts/default.html.erb app/views/public_body/statistics.html.erb config/application.rb config/environments/development.rb
| * | Require activesupport before mail gem.Louise Crow2013-11-12-0/+3
| | | | | | | | | | | | | | | | | | | | | If activesupport isn't present, the mail gem will load it's own version, and when rails is eventually loaded in this script, the warning "warning: already initialized constant VALID CHARACTER" is written to standard error.
* | | Precompile the assets in rails-post-deployMark Longair2013-11-26-0/+2
| |/ |/|
* | Merge branch 'install-script' into rails-3-developMark Longair2013-11-07-43/+354
|\ \
| * | Set 'constraint_disabling: false' for tests in database.ymlMark Longair2013-11-07-0/+1
| | | | | | | | | | | | | | | Without this setting, the PostgreSQL user still has to be a superuser for the tests to work without constraint disabling errors.
| * | Rename /etc/postfix/regexp to /etc/postfix/transportsMark Longair2013-11-07-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | This seems slightly less confusing, since both this file and /etc/postfix/recipients contain regexp patterns. This also switches to replacing any transport_maps file that was in use and overwrites the existing file rather than modifying it.
| * | Reduce "backscatter" bounce risk by setting local_recipient_mapsMark Longair2013-11-07-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Leaving the local_recipient_maps setting empty has a risk which is described in the Postfix manual: "[...] That is, an empty value. With this setting, the Postfix SMTP server will not reject mail with "User unknown in local recipient table". Don't do this on systems that receive mail directly from the Internet. With today's worms and viruses, Postfix will become a backscatter source: it accepts mail for non-existent recipients and then tries to return that mail as "undeliverable" to the often forged sender address." This commit changes the local_recipient_maps setting to only accept (and potentially bounce) emails where the local part is known (one that we've mentioned in general.yml) or to a Unix user that exists. Fixes #1166
| * | Invoke commands as the unprivileged user in a login shellMark Longair2013-11-07-3/+3
| | | | | | | | | | | | | | | | | | | | | On some setups, the unprivileged user's .bashrc file won't be sourced unless you've started a login shell - we need that to be sourced to add the gem's bin directory to the PATH, or "bundle" won't be found, for example.
| * | Remove make-crontab and update INSTALL.mdMark Longair2013-11-07-16/+0
| | | | | | | | | | | | | | | | | | The make-crontab script is now redundant, so instead direct people to use the config_files:convert_crontab rake task for generating a crontab file.
| * | Add a rake task to rewrite the crontab-example fileMark Longair2013-11-07-4/+5
| | | | | | | | | | | | | | | | | | As suggested by Louise Crow, this new rake task reuses the convert_ugly function to rewrite the crontab-example file into a usable crontab file.
| * | Switch to using 'rake config_files:convert_init_script'Mark Longair2013-11-07-6/+3
| | | | | | | | | | | | | | | | | | Rather than reimplement the processing of the ugly file with sed, we can use the existing rake task for rewriting config/alert-tracks-debian.ugly.
| * | If the origin/install-script branch exists, use that in preferenceMark Longair2013-11-07-7/+4
| | | | | | | | | | | | | | | | | | Once merged to master we can remove origin/install-script, but development is awkward without it. This commit also makes it easy to have an arbitrary number of fallbacks.
| * | We don't use foi-purge-varnish ourselves, so remove itMark Longair2013-10-31-7/+1
| | | | | | | | | | | | | | | | | | We had various problems with the foi-purge-varnish script ourselves that led to us removing it, so it seems like a bad idea to be implicitly suggesting that others should use it.
| * | Drop PostgreSQL superuser permissions after loading sample dataMark Longair2013-10-31-0/+6
| | |
| * | Add install scripts for AlaveteliMark Longair2013-10-31-0/+319
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | site-specific-install.sh will be called by our generic site install script in commonlib/bin/install-site.sh These scripts assume that you have a new installation of Debian squeeze or Ubuntu precise and then will set up: - Alaveteli running in development mode with the Thin web server behing nginx - The cron jobs that are required for the site to work. - A basic Postfix configuration for sending and receiving mail. We also will use this script for generating new AMIs (Amazon Machin Images) for Alaveteli. The general.yml configuration file will be created if it doesn't exist, but if there is an existing copy it won't be overwritten, so it should be safe to customize that file and then re-run the install script.
| * | Deal with ../logs existing, and log not being a symlinkMark Longair2013-10-29-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The rails-post-deploy script would error if the log directory existed (rather than being a symlink to another directory, for example) and the ../logs directory also existed. This commit changes this behaviour to move the existing log directory out of the way in this case. In addition, this commit switches from removing the old symlink and creating a new one (which creates a gap in time during which the log directory doesn't exist) to using "ln -snf" to just overwrite any existing symlink or file. (Note that this is still not an atomic operation, but it's bound to leave less time between removal and creation.)
| * | Normalize whitespace in rails-post-deployMark Longair2013-10-29-27/+27
| |/ | | | | | | | | | | | | | | | | The rails-post-deploy script unfortunately uses a mixtures of spaces and 0x09 to represent indentation, so it's not even clear what local convention to follow. It appears from the mixture that the intention is that the tabs should represent 4 spaces, so this commit replaces them, strips trailing whitespace and changes some non-standard indentation at the end of a bash heredoc.
* / Add a script to help switch theme for local developmentMark Longair2013-10-30-0/+120
|/ | | | | | | | | | | | | | | | When working locally, it's useful to be able to switch between themes quickly, which essentially involves: - Updating the general.yml symlink to point to a theme-specific one - Updating the public/alavetelitheme symlink - Making sure that the theme exists as vendor/plugins/<theme-name> This script lets you switch between themes kept in a directory which is by default called 'alaveteli-themes' at the same level as your Alaveteli git repository, or can be overriden by the environment variable ALAVETELI_THEMES_DIR.
* Merge branch 'feature/hide-individual-responses' into rails-3-developLouise Crow2013-09-17-6/+0
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile app/views/admin_request/edit_outgoing.html.erb config/packages doc/CHANGES.md doc/INSTALL.md spec/models/info_request_spec.rb spec/models/public_body_spec.rb
| * Don't make zip dir publicly accessible.Louise Crow2013-09-16-6/+0
| | | | | | | | We want to be able to authorise access to it.
* | Remove obsolete script.Louise Crow2013-09-12-22/+0
| |
* | Put rake in silent mode when run from cronLouise Crow2013-09-05-1/+1
| |
* | Add bash script for updating body stats from cron.Louise Crow2013-09-05-0/+4
| |
* | Run migrations before trying to install themeIan Chard2013-08-14-3/+1
| | | | | | | | | | | | Conflicts: script/rails-post-deploy
* | Clean up paths to be a bit less OS dependent.Louise Crow2013-08-12-6/+4
| |
* | Add a rake task to print a warning if the state of a submodule is not what ↵Louise Crow2013-07-30-0/+2
|/ | | | we expect it to be.