Code Monkey home page Code Monkey logo

Comments (12)

14790897 avatar 14790897 commented on June 19, 2024

大佬在吗

from symphony.

88250 avatar 88250 commented on June 19, 2024

Freemarker 模板我记得开发环境(mode=dev)就是热加载的,是不是改了样式没有生效?

from symphony.

14790897 avatar 14790897 commented on June 19, 2024

image
我是在Ubuntu 服务器的tmux里运行的,现在更改.ftl文件不会自动应用

from symphony.

88250 avatar 88250 commented on June 19, 2024

服务器日志一开始能看到这行吗?

[WARN ]-[2023-11-10 21:30:19]-[org.b3log.latke.Latkes:713]: !!!!Runtime mode is [DEVELOPMENT], please make sure configured it with [PRODUCTION] in latke.properties if deployed on production environment!!!!

from symphony.

14790897 avatar 14790897 commented on June 19, 2024

image
有的

from symphony.

88250 avatar 88250 commented on June 19, 2024

抱歉,我记错了,这个和开发/生产模式没有关系。

我猜测你可能是修改错位置了,请参考 https://github.com/88250/symphony/blob/master/src/main/java/org/b3log/symphony/util/Templates.java

from symphony.

14790897 avatar 14790897 commented on June 19, 2024

我修改的确实是resources文件夹下的ftl文件,我明天再问问别人

from symphony.

14790897 avatar 14790897 commented on June 19, 2024

大佬,我使用下面的代码启动

mvn package
java -cp "target/symphony/lib/*;target/symphony" org.b3log.symphony.Server

修改resources目录下的代码不能立即生效,需要重新运行上面的代码才可以生效

from symphony.

14790897 avatar 14790897 commented on June 19, 2024

我发现idea是可以热重载,但vs code和命令行不行,为什么?

from symphony.

14790897 avatar 14790897 commented on June 19, 2024

👀

from symphony.

88250 avatar 88250 commented on June 19, 2024

大概是类加载机制不一样吧,可以参考上面的代码调试看看。

from symphony.

14790897 avatar 14790897 commented on June 19, 2024

好的,我再想想

from symphony.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.