-
Notifications
You must be signed in to change notification settings - Fork 3
namespacing
Dan Bottomly edited this page Nov 9, 2015
·
3 revisions
Namespacing will be supported (v1.1) to allow multiple instances in seperate VMs to be deployed on a single server.
For instance to create a CCLE instance e.g. http://server.name/HitWalker2/ccle do the following in your Vagrant directory after cloning the devel branch:
vagrant up
vagrant provision --provision-with patch
vagrant ssh -c 'cd ~/HitWalker2;sudo python change_type.py ccle;sudo chown -R vagrant:vagrant /var/www;'
vagrant reload
The host server can then have an nginx server statement similar to:
server {
listen 80;
server_name {hostname};
location ~ ^.*/{instance.1}.*$ {
proxy_pass http://{vm.ip.1};
}
location ~ ^.*/{instance.2}.*$ {
proxy_pass http://{vm.ip.2};
}
}
where the values in brackets should be supplied by the person configuring the server.