Comments (12)
大佬在吗
from symphony.
Freemarker 模板我记得开发环境(mode=dev)就是热加载的,是不是改了样式没有生效?
from symphony.
我是在Ubuntu 服务器的tmux里运行的,现在更改.ftl文件不会自动应用
from symphony.
服务器日志一开始能看到这行吗?
[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.
from symphony.
抱歉,我记错了,这个和开发/生产模式没有关系。
我猜测你可能是修改错位置了,请参考 https://github.com/88250/symphony/blob/master/src/main/java/org/b3log/symphony/util/Templates.java
from symphony.
我修改的确实是resources文件夹下的ftl文件,我明天再问问别人
from symphony.
大佬,我使用下面的代码启动
mvn package
java -cp "target/symphony/lib/*;target/symphony" org.b3log.symphony.Server
修改resources目录下的代码不能立即生效,需要重新运行上面的代码才可以生效
from symphony.
我发现idea是可以热重载,但vs code和命令行不行,为什么?
from symphony.
👀
from symphony.
大概是类加载机制不一样吧,可以参考上面的代码调试看看。
from symphony.
好的,我再想想
from symphony.
Related Issues (20)
- 关于商业版和社区版 HOT 1
- 更新 Vditor 编辑器至 3.8.3
- 在标签树上点击多个标签时,无法实现切换,只是点一个加一个 HOT 1
- 支持RSS订阅 HOT 1
- 升级到 JDK 11
- Vditor 改为本地文件 HOT 1
- 移动端跳转到指定笔记 HOT 1
- docker
- 存储密码时使用安全 Hash 算法并加盐 HOT 1
- 更新前后端密码传递方式 HOT 1
- 对于文件所在合法目录判断上的缺陷 HOT 3
- Find a trigger for log4j2 remote command execution in symphony 3.6.3 HOT 1
- Dockerfile missing dependency? latke.props ? HOT 2
- npm run dev 和 npm run build 都没有用
- npm run dev/build都不能用 HOT 3
- 升级 "gulp-sass" 到 5.1.0, "node-sass" 到 9.0.0 HOT 1
- 博客如何配置ssl证书 HOT 1
- 发不出邮件 HTTPS反向代理报502错误 HOT 1
- 文件名在页面的显示问题! HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from symphony.