掲示板
Portal Instance Properties
12年前 に Matteo Gnocchi によって更新されました。
Portal Instance Properties
Junior Member 投稿: 33 参加年月日: 10/09/06 最新の投稿
Hi
I have a single liferay 6.0.6 CE server, there are several portal instances; each individual instance has a series of communities that shares the configuration.
Is there a way to add different individual configurations for each portal instance (for ex. portal-instance1.properties)?
Thanks
Matteo
I have a single liferay 6.0.6 CE server, there are several portal instances; each individual instance has a series of communities that shares the configuration.
Is there a way to add different individual configurations for each portal instance (for ex. portal-instance1.properties)?
Thanks
Matteo
12年前 に Sandeep Nair によって更新されました。
RE: Portal Instance Properties
Liferay Legend 投稿: 1744 参加年月日: 08/11/06 最新の投稿
I think it should be possible as I see the provision in portal.properties to include company specific properties, though I have never tried id. Check out the following property. It says first you have to set company-id-properties system property to true, then you can have portal-companyId.properties
Regards,
Sandeep
#
# Each portal instance can have its own overriden property file following
# the convention portal-companyWebId.properties. To enable this feature, set
# the "company-id-properties" system property to true.
#
# To enable:
#
# java ... -Dcompany-id-properties=true
#
# The read order will now be: portal.properties, then portal-ext.properties,
# and then portal-liferay.com.properties.
#
# Note that not all properties can have different values per company. This
# functionality is only available for legacy reasons. The preferred way to
# configure a portal instance is through the Control Panel.
#
include-and-override=portal-${easyconf:companyId}.properties
include-and-override=${liferay.home}/portal-${easyconf:companyId}.properties
Regards,
Sandeep
11年前 に MICHAIL MOUDATSOS によって更新されました。
RE: Portal Instance Properties
Regular Member 投稿: 110 参加年月日: 11/10/04 最新の投稿
Hi Matteo,
did you manage to make this work, after all? I'm trying to do the same for the Web server properties with no success. Any gotchas you encountered? Anyone else?
In detail, what I did:
I added -Dcompany-id-properties=true to setenv.bat in the line defining JAVA_OPTS
I also created system-ext.properties file with company-id-properties=true in it
I created portal-myCompanyWebId.com.properties and inside I added the web server properties I wanted to customize for the instance with the given webId
I think that should be all.
did you manage to make this work, after all? I'm trying to do the same for the Web server properties with no success. Any gotchas you encountered? Anyone else?
In detail, what I did:
I added -Dcompany-id-properties=true to setenv.bat in the line defining JAVA_OPTS
I also created system-ext.properties file with company-id-properties=true in it
I created portal-myCompanyWebId.com.properties and inside I added the web server properties I wanted to customize for the instance with the given webId
I think that should be all.