| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
For local testing, we'll now treat a box named `fms-local` as if it
was the Vagrant Cloud box.
|
|
|
|
|
|
|
|
|
| |
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]
|
|
|
|
|
|
|
|
| |
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]
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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]
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Fixes #1197. Thanks to Dave Arter for helping out with this.
|
|
|
|
|
| |
Call the necessary boilerplate in each script so you can call them
directly. Remove boilerplate from files that don't need it.
|
|
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
|