【问题标题】:Autodeploy portlet in Liferay on Jelastic在 Jelastic 上的 Liferay 中自动部署 portlet
【发布时间】:2013-09-27 10:14:24
【问题描述】:

我会更改自动部署文件夹以在 Liferay 中部署我的自定义 portlet。 我在 Tomcat 中使用 Jelastic 设置。我需要更改 portal-ext.propeties 吗?

【问题讨论】:

    标签: liferay-6 portal jelastic autodeploy


    【解决方案1】:

    实际上有两个地方我认为你会更新属性

    1. portal-ext.properties 更新以下属性以获得您的自定义目录

      # Set the directory to scan for layout templates, portlets, and themes to
      # auto deploy.
      #
      
      auto.deploy.deploy.dir=${liferay.home}/deploy
      
    2. 对于您的 plugin-sdk,您必须将以下属性添加到您的 build.{username}.properties

      # Auto Deploy
      # Plugins will be deployed to this directory. Make sure that Liferay is
      # also set to scan this directory.
      #
      
      auto.deploy.dir=${app.server.dir}/../deploy
      

    希望这会有所帮助!

    【讨论】:

    • 对不起“auto.deploy.deploy.dir”或“auto.deploy.dest.dir”?在哪里可以找到“build.{username}.properties”文件?
    • 您可以在 SDK 文件夹中找到 buildXYZ.properties。 portal-ext.properties 位于您的 Portal 文件夹中,与 Tomcat 文件夹处于同一级别
    • >对不起“auto.deploy.deploy.dir”或“auto.deploy.dest.dir”? “auto.deploy.deploy.dir”就在这里。
    • Michele 如果你通过 liferay plugin sdk development guide liferay.com/documentation/liferay-portal/6.1/development/-/ai/… 它提到你需要使用 build.{username}.properties 创建一个属性文件,并且在这个属性中你提到你的 liferay tomcat 路径这些属性可以在默认的 build.properties 文件中找到。基本上,您正在扩展或更新属性以进行更改。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-10
    • 1970-01-01
    • 2022-01-24
    • 2011-07-12
    • 1970-01-01
    • 2013-05-04
    相关资源
    最近更新 更多