[英]Live reloading of ISML templates
在Intershop 7.9項目中,我目前正在開發服務器上似乎沒有監視ISML文件的變化。 這意味着在查看任何ISML更改之前,必須進行盒式磁帶重建。 在以前的項目中我曾經做過(ISH 7.5,7.6,7.7),這是絕對必要的,只需保存ISML文件即可。
感覺我錯過了一些非常簡單的東西,但我似乎無法弄明白。 到目前為止,我已經嘗試了以下但沒有成功:
gradlew deployServer
gradlew enableHotCodeReloading
。 GRADLE_USER_HOME
的gradle.properties
文件,我希望看到的所有磁帶都列為sourceCartridges。 environment.properties
文件,據我所知,這個文件不包含任何可以為實時代碼重新加載做任何事情的屬性。 任何有關如何解決這個問題的建議將不勝感激。
據我記得, 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.