Installing Brightspot on the virtual machine
Build your Brightspot project: in the root directory, type mvn clean install.
Boot the guest by doing the following:
Change to the directory where you downloaded
Vagrantfile
.Type vagrant up. Respond to any prompts.
Log in to the guest: type vagrant ssh. The guest's command prompt is similar to the following:
vagrant@brightspot-tutorial-init: [brightspot-tutorial-init-development sandbox(dev) 1]
In the guest, change to the directory that maps to the directory where the Brightspot war resides, such as cd /vagrant/target (see the illustration Vagrant host and guest directory structures).
Copy the Brightspot war into the guest directory
/servers/brightspot/webapps/
, naming the target war fileROOT.war
. For example:cp /vagrant/express-site-4.2-SNAPSHOT.war /servers/brightspot/webapps/ROOT.war
Tomcat automatically deploys the war.
Retrieve the guest's IP address: on the guest, type hostname -I. The guest displays addresses similar to the following. Use the address that starts with
172
.10.0.2.15 172.28.128.13
(Optional) Map a host name to the host IP address. See Mapping a host name to a virtual IP address.
Start a Brightspot session by pointing a browser to the guest's directory
cms
, such as172.28.128.13/cms
. If a POC (proof-of-concept) Starter Kit appears, click Skip. A login page similar to the following appears:
Note
If you experience excessively slow performance with either the host OS or the guest Ubuntu OS, you may need to adjust memory allocation in the VirtualBox Manager.