【问题标题】:Live reloading of ISML templatesISML 模板的实时重新加载
【发布时间】:2018-05-23 17:16:37
【问题描述】:

在我目前在开发服务器上工作的 Intershop 7.9 项目中,似乎没有监视 ISML 文件的更改。这意味着在看到任何 ISML 更改之前,必须重新构建磁带盒。在我之前参与过的项目(ISH 7.5、7.6、7.7)中,这从来没有必要,只需保存 ISML 文件就足够了。

感觉好像我错过了一些非常简单的东西,但我似乎无法弄清楚。到目前为止,我已经尝试了以下但没有成功:

  1. 确保禁用页面缓存。
  2. 通过运行以下命令重新部署服务器:gradlew deployServer
  3. 通过运行以下命令启用热代码重新加载:gradlew enableHotCodeReloading
  4. 检查了位于GRADLE_USER_HOME 中的gradle.properties 文件,我希望看到的所有墨盒都列为sourceCartridges。
  5. 检查了environment.properties 文件,据我所知,该文件不包含对实时代码重新加载有任何作用的属性。
  6. 重新安装了 Intershop Studio。

任何有关如何解决此问题的建议将不胜感激。

【问题讨论】:

    标签: intershop isml


    【解决方案1】:

    据我所知,appserver.properties 中有一些相关的属性。我偶然在谷歌上搜索了这些:

    # perform a lookup and compile the ISML template, when it exists 
    # and is newer than the cached version
    intershop.template.CheckSource=false
    
    # the time interval in seconds, after which a full lookup should be performed,
    # if CheckSource is "true". 0 means every time
    intershop.template.CheckSourceInterval=0
    
    # should the last cached template location been checked for a newer version of the
    # template, if CheckSource is "true"?
    intershop.template.CheckSourceModified=false
    

    现在尝试使用这些值:

    intershop.template.CheckSource=true
    intershop.template.CheckSourceInterval=0
    intershop.template.CheckSourceModified=true
    

    我认为,如果您不想在重新部署服务器时丢失您的更改,那么您可以将上面的 sn-p 放入一个名为 development.properties 的文件中,该文件与 appreserver.properties 位于同一目录中。

    【讨论】:

      【解决方案2】:

      确保在appserver.properties 中设置了必要的checksource 属性。在您的情况下,模板的设置需要设置为 true。

      【讨论】:

        猜你喜欢
        • 2020-02-05
        • 1970-01-01
        • 1970-01-01
        • 2017-04-24
        • 1970-01-01
        • 2013-10-05
        • 1970-01-01
        • 2017-05-21
        • 1970-01-01
        相关资源
        最近更新 更多