diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-07-16 15:41:23 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-07-16 15:41:23 +0100 |
commit | 6e62f951039cc06f02d14bc0eafcb51afe0023cd (patch) | |
tree | 3548bc2001cc45cf7c5578056693d2320250277c /docs/install/vagrant.md | |
parent | 56cd029d00d34b69de8b2f2a8cf9f2c82621a79d (diff) |
[Docs] Add bit about cobrand in vagrant.
Diffstat (limited to 'docs/install/vagrant.md')
-rw-r--r-- | docs/install/vagrant.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/install/vagrant.md b/docs/install/vagrant.md index 98f846644..55b7802ac 100644 --- a/docs/install/vagrant.md +++ b/docs/install/vagrant.md @@ -68,3 +68,33 @@ The server will now be running and you can visit it at the address The username and password to access the admin (at address `http://fixmystreet.127.0.0.1.xip.io:3000/admin/`) will have been shown at the end of the `vagrant up` output. + +## Editing a cobrand + +If you're working on a cobrand in an external repository, you will want that +cobrand available inside the virtual machine as well. To do this, you will need +to add a line to the Vagrantfile in the FixMyStreet repository, along the lines of: + + config.vm.synced_folder “../your-cobrand”, “/home/vagrant/your-cobrand”, :owner => “vagrant”, :group => “vagrant” + +Then restart your vagrant box. Once that is done, you can set up symlinks +inside Vagrant, linking the various components of your cobrand into the right +places in the core repository. For example, if your filesystem has a layout +like this: + + www/ + fixmystreet/ # The checkout of the fixmystreet repository + my-cobrand-repo/ + templates/web/(cobrand)/ + templates/email/(cobrand)/ + perllib/FixMyStreet/Cobrand/(CoBrand.pm) + web/cobrands/(cobrand)/ + +Then within the fixmystreet repository, you could run: + + ln -s -f -v ../my-cobrand-repo/perllib/FixMyStreet/Cobrand/(Cobrand.pm) perllib/FixMyStreet/Cobrand/ + ln -s -f -v ../my-cobrand-repo/templates/web/(cobrand) templates/web/ + ln -s -f -v ../my-cobrand-repo/templates/email/(cobrand) templates/email/ + ln -s -f -v ../my-cobrand-repo/web/cobrands/(cobrand) web/cobrands/ + +Restart the development server and your cobrand should be accessible. |