aboutsummaryrefslogtreecommitdiffstats
path: root/script
Commit message (Collapse)AuthorAgeLines
* Do not have bootstrap run sudo commands.Matthew Somerville2020-07-15-13/+0
| | | | | | | | | Your site user may not have access to sudo, and your admin user may cause permission issues if used to do the git checkout, or the Perl module installation. Document the separate script to install system packages instead. Co-authored-by: Sam Pearson <sam@mysociety.org>
* Respect SKIP_PACKAGES_INSTALL when not in Docker tooDave Arter2020-04-27-7/+7
| | | | | | When working locally it’s not convenient to always run install_packages as part of ./script/update, so this commit allows you to define the SKIP_PACKAGES_INSTALL environment variable to stop that.
* [Docker] Allow user to skip running install_packagesSam Pearson2020-03-10-2/+5
| | | | | When running in Docker, set `SKIP_PACKAGES_INSTALL` to avoid running `install_packages` when starting the container.
* [script/bootstrap] Keep OS packages updated in development environmentsSam Pearson2020-03-03-0/+10
| | | | | | | | | | | This adds a script, `bin/install_packages`, that will install packages listed in versions of `conf/packages*` and calls it from the bootstrap script in a way appropriate to the environment it is being run under. This should ensure that, for example, changes to dependencies will be applied to Vagrant machines in-between tagged releases. The default packages file used will be `packages.generic`.
* Version 2.6.v2.6Matthew Somerville2019-05-03-1/+1
| | | | | Include the usual generate new .pot file, gettext-merge, push to Transifex, pull from Transifex step.
* [Vagrant] Check and generate config file if necessarySam Pearson2018-11-05-1/+15
| | | | | | | | This adds support in `script/setup` for generating a local `general.yml` if it doesn't already exist and is run as the `vagrant` user. This is called from the `Vagrantfile` when using the FixMyStreet Vagrant box. [skip ci]
* Switch to direct app server, not FastCGI.Matthew Somerville2018-09-26-3/+11
|
* Monitor whole conf directory in dev serverMatthew Somerville2018-03-07-1/+1
| | | | | When running on a Mac, the dev server only watches changes to directories, not files.
* Add debug toolbar middleware.Matthew Somerville2017-08-29-1/+2
| | | | | | | | | | | | | | If debug is enabled, using the CATALYST_DEBUG/FIXMYSTREET_APP_DEBUG environment variables, add a debug toolbar to the output, including request/response details and a database query log. This uses Plack middleware, so works by switching our dev server to use Starman with plack directly, rather than via the script runner. We remove the GZip compression as this interferes, and take a local copy of the QueryLog::AdoptPlack trait as it needs a tweak to work. Make sure the CSP header is not output in debug mode, as that would prevent the toolbar JavaScript from running.
* Add scripts to rule them all.Matthew Somerville2017-06-30-0/+41
| | | | | Along the model of GitHub’s scripts, add generic scripts to bootstrap, update, test or run a server.
* Remove need for cron-wrapper with existing scriptsMatthew Somerville2015-01-19-0/+18
| | | | | Call the necessary boilerplate in each script so you can call them directly. Remove boilerplate from files that don't need it.
* Move to web directoryEdmund von der Burg2011-02-22-78/+0
| | | | | change suffix to .cgi so that default conf applies add library paths
* Created app using catalyst.plEdmund von der Burg2011-02-22-0/+238