Difference between revisions of "SUNScholar/Rebuild DSpace"

From Libopedia
Jump to navigation Jump to search
(Created page with "Log into your server and type the following: su - dspace mkdir /home/dspace/scripts nano /home/dspace/scripts/build-webapps ''Tip: It is always a good idea to maximise the ...")
 
m (Text replace - "dspace-1.5.2" to "dspace-1.6.2")
Line 13: Line 13:
 
clear
 
clear
 
echo "Please wait."
 
echo "Please wait."
cd /home/dspace/dspace-1.5.2-src-release
+
cd /home/dspace/dspace-1.6.2-src-release
 
mvn package
 
mvn package
cd /home/dspace/dspace-1.5.2-src-release/dspace/target/dspace-1.5.2-build.dir
+
cd /home/dspace/dspace-1.6.2-src-release/dspace/target/dspace-1.6.2-build.dir
 
ant -Doverwrite=true update clean_backups
 
ant -Doverwrite=true update clean_backups
 
sudo /etc/init.d/tomcat5.5 restart
 
sudo /etc/init.d/tomcat5.5 restart
Line 24: Line 24:
 
echo "********************************************************************************************************************"
 
echo "********************************************************************************************************************"
 
</pre>
 
</pre>
Replace '''dspace-1.5.2''' with '''dspace-1.6.0''' for DSpace version 1.6.0.
+
Replace '''dspace-1.6.2''' with '''dspace-1.6.0''' for DSpace version 1.6.0.
  
 
Press '''CTL+O''' and '''CTL+X''' to save the file and exit nano.
 
Press '''CTL+O''' and '''CTL+X''' to save the file and exit nano.

Revision as of 13:50, 6 June 2011

Log into your server and type the following:

su - dspace
mkdir /home/dspace/scripts
nano /home/dspace/scripts/build-webapps

Tip: It is always a good idea to maximise the open nano window so that the copy and paste of long lines does not wrap around.

Copy and paste the following into the open nano editor.

#!/bin/bash
clear
echo "Please wait."
cd /home/dspace/dspace-1.6.2-src-release
mvn package
cd /home/dspace/dspace-1.6.2-src-release/dspace/target/dspace-1.6.2-build.dir
ant -Doverwrite=true update clean_backups
sudo /etc/init.d/tomcat5.5 restart
sleep 2
clear
echo "********************************************************************************************************************"
echo "Please redeploy as needed when presentation changes have been made if any interface has been made the Tomcat ROOT."
echo "********************************************************************************************************************"

Replace dspace-1.6.2 with dspace-1.6.0 for DSpace version 1.6.0.

Press CTL+O and CTL+X to save the file and exit nano.

Type the following:

chmod 0755 /home/dspace/scripts/build-webapps

Now you can rebuild Dspace by typing the following at anytime.

/home/dspace/scripts/build-webapps