How to change location of liferay directory for file storage

710832, modified 17 Years ago. Junior Member Posts: 37 Join Date: 4/23/08 Recent Posts
I need to change the location of liferay folder or directory that contains subfolders (deploy, ehcache, jackrabbit, lucene). The folder by default "resides in home directory of the user ID under which Liferay is running" (Liferay admin Guide). I need to move it to another drive like E:\ in Windows. Can someone help me with this?

Thanks,
Isabel
thumbnail
32461, modified 17 Years ago. Regular Member Posts: 193 Join Date: 6/6/07 Recent Posts
portal-ext.properties

[b]resource.repositories.root=other_folder/liferay[/b]
auto.deploy.deploy.dir=${resource.repositories.root}/deploy
lucene.dir=${resource.repositories.root}/lucene/
jcr.jackrabbit.repository.root=${resource.repositories.root}/jackrabbit
dl.hook.file.system.root.dir=${resource.repositories.root}/document_library
710832, modified 17 Years ago. Junior Member Posts: 37 Join Date: 4/23/08 Recent Posts
Jonatan,

Thanks for the quick response and perfect solution to what I needed.

With much appreciation,
Isabel
thumbnail
guru murthy, modified 14 Years ago. Regular Member Posts: 208 Join Date: 8/12/11 Recent Posts
Jonatan Oyola:
portal-ext.properties

[b]resource.repositories.root=other_folder/liferay[/b]
auto.deploy.deploy.dir=${resource.repositories.root}/deploy
lucene.dir=${resource.repositories.root}/lucene/
jcr.jackrabbit.repository.root=${resource.repositories.root}/jackrabbit
dl.hook.file.system.root.dir=${resource.repositories.root}/document_library


Hi Oyola ,

Right now , I am also facing a bit of challenge with hot deployment process , I changed

auto.deploy.dir=${user.home}/Desktop/liferay/deploy


In my build.${user.home}.properties file and one more change just like as you said in portal-ext.properties file .

when I deploy themes /portlets / layouts from plugins , those are shifting into ${user.home}/Desktop/liferay/deploy as a jar's but from the ${user.home}/Desktop/liferay/deploy , The hot deployer is not deploying into tomcat , so can you explain more about this process of deploying once again .

Thanks & Regards...
G.Gurumurthy
Masud Ahamed, modified 11 Years ago. New Member Post: 1 Join Date: 6/6/12 Recent Posts
It did not work for me, unable to show the old documents,i.e, pdf/doc files. Please suggest
thumbnail
10527, modified 17 Years ago. Liferay Legend Posts: 1197 Join Date: 2/8/05 Recent Posts
Open/Create [tt]<portal>/WEB-INF/classes/portal-ext.properties[/tt]

and add/modify the value of:

[tt]resource.repositories.root=${user.home}/liferay[/tt]

HTH!