This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. « Torna a Upgrade Instructions
Upgrade Instructions for Update Releases
Introduction#
Here are instructions for how to upgrade "Update Releases". When the release number changes by 0.0.1
Upgrading Liferay without customizations #
If you havent made any modifications to the Liferay core and are using Liferay out of the box, all you need to do is upgrade the database.
Starting with 4.3+, database upgrade scripts are automatically run when the code base is updated.
Let's say you are using the Liferay-tomcat bundle for 4.3.4 and you want to upgrade to Liferay Portal 4.3.5
- as with all upgrades.. backup your database
- make sure tomcat is shutdown (tomcat\bin\shutdown.sh)
- download unzip the new liferay-tomcat bundle (http://sourceforge.net/projects/lportal/ or http://www.liferay.com/web/guest/downloads)
- modify the tomcat bundle to point to your existing database (tomcat\conf\Catalina\localhost\ROOT.xml)
- startup the new tomcat bundle (watch the tomcat log and watch to see it run the upgrade scripts, it will only run this one time)
Upgrading Liferay with customizations #
If you have made any customizations, you should have an EXT environment. What you are basically doing is rebuilding the ext environment. The ant script is written in such a way that it will only overwrite the old core code, the code that needs to be updated.
- as with all upgrades.. backup your database
- make sure tomcat is shutdown (tomcat\bin\shutdown.sh)
- download and unzip the new Liferay Portal Source (http://sourceforge.net/projects/lportal/ or http://www.liferay.com/web/guest/downloads/additional)
- create a release.[Username].properties file to point to your existing EXT environment (or copy the one from your old portal source)
- from your new portal folder (which has the release.[Username].properties file, run "ant clean start build-ext". this will upgrade the code in your ext environment without touching your customizations
- from the upgraded ext folder, run "ant deploy"
- startup the new tomcat bundle (watch the tomcat log and watch to see it run the upgrade scripts, it will only run this one time)
39007 Visualizzazioni