aboutsummaryrefslogtreecommitdiffstats
path: root/Vagrantfile
Commit message (Collapse)AuthorAgeLines
* [Vagrant] Add local testing box to provisioning conditionalSam Pearson2020-03-03-1/+1
| | | | | For local testing, we'll now treat a box named `fms-local` as if it was the Vagrant Cloud box.
* [Vagrant] Only add development port to BASE_URL when requiredSam Pearson2018-11-05-5/+5
| | | | | | | | | The addition of `:3000` to `BASE_URL` is now only made when not using the FixMyStreet box as this will be supplied in by the `setup` script in that case. This should also only be applied when not already present to prevent it being added repeatedly. [skip ci]
* [Vagrant] Check and generate config file if necessarySam Pearson2018-11-05-1/+1
| | | | | | | | 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]
* [Vagrant] Improve provisioning for mySociety base boxSam Pearson2018-10-11-18/+48
| | | | | | | | | | | | - When using the official box, just run `script/update` at startup as the latest release (0.0.3) has everything fully pre-installed; - Ensure `/home/vagrant/.cpanm` is owned by vagant user; - When using the official box, always run the provisioner that checks and bind mounts the local pre-built Perl modules when starting as these would previously have been missing after a `halt` and `up`; - When using any other box, just run the full install process. [skip ci]
* [Vagrant] Ensure `local` directory is presentSam Pearson2018-10-02-0/+1
| | | | | | | | When using the mySociety Vagrant box, ensure that the `local/` directory is present before attempting to bind mount the pre-built Perl modules. Without this directory present the bind mount will fail and the Perl modules will all be built again unnecessarily.
* Vagrant: Use the mysociety/fixmystreet box by defaultSam Pearson2018-09-28-21/+47
| | | | | | | | | | | | | This sets the default box to be `mysociety/fixmystreet` and provides an optional argument, `--base-box`, that can be used to override this. When using the `mysociety/fixmystreet` box, the Perl modules are prebuilt in `/usr/share/fixmystreet/local` and are bind-mounted into `/home/vagrant/fixmystreet/local`. This ensures that these are compatible with the guest machine and speeds up an initial launch. The `mysociety/fixmystreet` box is also based on Debian Stretch so is a closer match to our current production environment.
* Update Vagrantfile to use Xenial.Matthew Somerville2018-04-18-8/+1
|
* Add Cypress testing.Matthew Somerville2018-03-15-0/+2
|
* Version 2.1.Matthew Somerville2017-07-18-1/+1
|
* [Vagrant] Update submodule on any provisioning.Matthew Somerville2017-05-16-10/+8
| | | | | | On an initial clone, the Vagrantfile would check and make sure that the submodule was present (and usable inside and outside the box), but on a subsequent provisioning it wasn't making sure it was up to date.
* Run createsuperuser script as vagrant user.Matthew Somerville2016-08-08-1/+1
|
* Use normal user authentication to control access to /adminMatthew Somerville2016-07-19-0/+3
| | | | | | | | | - Adds is_superuser flag to User - Logged-in user must be a superuser or have from_body set in order to access anything within /admin - has_permission_to on a superuser will always return true - Only superusers can create/grant superusers - New `createsuperuser` command for creating superusers
* Improve error handling of Vagrant installation.Matthew Somerville2016-06-07-7/+17
| | | | | | It should now show a failure message on failure, rather than always show the success message, and not show a confusing error about general.yml if something went wrong before creating that file.
* Make sure Vagrantfile checks out git submodules.Matthew Somerville2015-09-24-0/+11
| | | | Fixes #1197. Thanks to Dave Arter for helping out with this.
* Remove need for cron-wrapper with existing scriptsMatthew Somerville2015-01-19-1/+1
| | | | | Call the necessary boilerplate in each script so you can call them directly. Remove boilerplate from files that don't need it.
* Move Vagrantfile to top level of repository.Matthew Somerville2014-07-18-0/+78
This makes it easier to set up, as you can do: $ git clone --recursive https://github.com/mysociety/fixmystreet $ cd fixmystreet $ vagrant up --no-color