How Can We Help?
Manual Pure deployment on LinuxManual Pure deployment on Linux
This guide assumes that you have Tomcat installed and working.
All paths used assume that Tomcat is installed with the paths set in the installation guide, so you might need to change the examples to match your system.
We recommend that you use the deploy script when deploying Pure. This page is meant as a reference if you wish to create your own deployment script.
Pure Distribution File
The Pure distribution file is a tar.gz file containing on folder with the distribution name and version, something like cust-dk-abc-5.2.0
.
Inside this folder you will find a folder for each webapp that is a part of Pure. Each folder is and unpacked war file, so the folder can be deployed directly into the Tomcat webapps folder.
A standard Pure distribution will have 3 war folders: admin
, portal
, and ws, but it can have more than that.
Deploying Pure to Tomcat
First stop Tomcat if it is running.
Now unpack the Pure distribution file on the server
tar zxf cust-dk-abc-5.2.0-distribution.tar.gz
Remove the any old version of Pure from the Tomcat. If you have other things running in this Tomcat, you might want to only delete the Pure folders instead of everything in the webapps folder as this example does!
sudo rm -rf /data/tomcat_base/webapps/*
Copy the Pure war folders from the unpacked distribution folder to the Tomcat webapps folder
cd cust-dk-abc-5.2.0 cp -r admin portal ws /data/tomcat_base/webapps/.
If you want the portal to run in / (eg. http://servername.com/ instead of http://servername.com/portal/) you should name the portal war folder ROOT when copying it to the Tomcat webapps folder
If the deployed folders are not owner by the Tomcat user or a group that the Tomcat user is a member of, change the owner
sudo chown -R tomcat:tomcat /data/tomcat_base/webapps/*
Change the rights of the deployed folders to make sure the Tomcat user and groups have full access to the files
sudo chmod -R ug+rw /data/tomcat_base/webapps/*
Set the execute bit on all folders
find /data/tomcat_base/webapps/ -type d -exec chmod ug+x {} \;
Start Pure and follow the "maintenance mode" guide
Updated at July 27, 2024