add ui integration to Vagrantifile and docs

This commit is contained in:
mdoglio 2014-02-20 14:50:43 +01:00
Родитель 25a15c791b
Коммит 278e5b02af
3 изменённых файлов: 19 добавлений и 0 удалений

1
Vagrantfile поставляемый
Просмотреть файл

@ -22,4 +22,5 @@ Vagrant::Config.run do |config|
# Try to use NFS only on platforms other than Windows
nfs = !Kernel.is_windows?
config.vm.share_folder("treeherder", "/home/vagrant/treeherder-service", "./", :nfs => nfs)
#config.vm.share_folder("treeherder-ui", "/home/vagrant/treeherder-ui", "../treeherder-ui/", :nfs => nfs)
end

Просмотреть файл

@ -14,6 +14,7 @@ Contents:
installation
dataload
deployment
ui_integration
Indices and tables

17
docs/ui_integration.rst Normal file
Просмотреть файл

@ -0,0 +1,17 @@
Integrating the ui
==================
If you want to develop both the ui and the service side by side it may be convenient to load the ui in the vagrant environment.
To do so, uncomment this line in the Vagrantfile
.. code-block:: ruby
#config.vm.share_folder("treeherder-ui", "/home/vagrant/treeherder-ui", "../treeherder-ui/", :nfs => nfs)
Make sure treeherder-ui is cloned in the same folder as treeherder-service (same parent folder) and reload you vagrant environment with
.. code-block:: bash
>vagrant reload
You should now be able to access the ui on http://local.treeherder.mozilla.org/ui/