簡體   English   中英

實時重新加載ISML模板

[英]Live reloading of ISML templates

在Intershop 7.9項目中,我目前正在開發服務器上似乎沒有監視ISML文件的變化。 這意味着在查看任何ISML更改之前,必須進行盒式磁帶重建。 在以前的項目中我曾經做過(ISH 7.5,7.6,7.7),這是絕對必要的,只需保存ISML文件即可。

感覺我錯過了一些非常簡單的東西,但我似乎無法弄明白。 到目前為止,我已經嘗試了以下但沒有成功:

  1. 確保禁用頁面緩存。
  2. 通過運行以下命令重新部署服務器: gradlew deployServer
  3. 通過運行以下命令啟用熱代碼重新加載: gradlew enableHotCodeReloading
  4. 檢查位於GRADLE_USER_HOMEgradle.properties文件,我希望看到的所有磁帶都列為sourceCartridges。
  5. 檢查了environment.properties文件,據我所知,這個文件不包含任何可以為實時代碼重新加載做任何事情的屬性。
  6. 重新安裝了Intershop Studio。

任何有關如何解決這個問題的建議將不勝感激。

據我記得, appserver.properties有一些相關的屬性。 我偶然用Google搜索了這些:

# 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

我認為,如果您不想在服務器重新部署時丟失更改,那么您可以將上面的代碼段放在名為development.properties的文件中,該文件位於與appreserver.properties相同的目錄中。

確保在appserver.properties中設置了必要的checksource屬性。 在您的情況下,模板的設置需要設置為true。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM