aboutsummaryrefslogtreecommitdiffstats
path: root/docs/install/vagrant.md
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2020-09-29 14:23:52 +0200
committerMarius Halden <marius.h@lden.org>2020-09-29 14:23:52 +0200
commita27ce1524d801d2742a2bdb6ec1da45126d64353 (patch)
tree64123c4e17dc1776aa0a7cd65ee01d49d3e7d978 /docs/install/vagrant.md
parent377bd96aab7cad3434185c30eb908c9da447fe40 (diff)
parent2773c60226b9370fe8ee00f7b205b571bb87c3b5 (diff)
Merge tag 'v3.0.1' into fiksgatami-dev
Diffstat (limited to 'docs/install/vagrant.md')
-rw-r--r--docs/install/vagrant.md30
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.