Search code examples
javaliferayliferay-6

liferay auto deploy not working


I am trying to build the theme in liferay 6.2. I am able to build the theme but auto deploy is not working. I have set autodeploy directory in portal-setup-wizard.properties like

auto.deploy.enabled=true

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

the entries in build.user.properties are

app.server.portal.dir = D:\Projects\Site\liferay-portal-6.2.0-ce-ga1\tomcat-7.0.42\webapps\ROOT app.server.lib.global.dir = D:\Projects\Site\liferay-portal-6.2.0-ce-ga1\tomcat-7.0.42\lib\ext app.server.deploy.dir = D:\Projects\Site\liferay-portal-6.2.0-ce-ga1\tomcat-7.0.42\webapps app.server.type = tomcat app.server.dir = D:\Projects\Site\liferay-portal-6.2.0-ce-ga1\tomcat-7.0.42

when build is successful I got message in console as

Copying 1 file to D:\Projects\Site\bundles\deploy

I am unable to rectify from where it is taking deploy directory path. I didn't specify D:\Projects\Site\bundles\deploy any where.


Solution

  • Auto deploy directory should be set in portal-ext.properties not in portal-setup-wizard.properties.

    Also I was missing app.server.parent.dir in build.user.properties file. It should be

    app.server.parent.dir=D:\Projects\Site\liferay-portal-6.2.0-ce-ga1