简体   繁体   English

如何在 Clojure pedestal repl 中重新加载代码以实现快速开发工作流程?

[英]How can I reload code in a Clojure pedestal repl for a quick development workflow?

I am using Pedestal (pedestal.io) and in development am running the server from inside a repl.我正在使用 Pedestal (pedestal.io),并且正在开发中从 repl 内部运行服务器。

When I make a change to the application code (such as changing the html template) how can I have the repl reflect these changes automatically upon save of file and have them show up on browser refresh?当我更改应用程序代码(例如更改 html 模板)时,如何让 repl 在保存文件时自动反映这些更改并让它们在浏览器刷新时显示?

您可能需要参考auto-reload-server示例,该示例使用ns-tracker查看代码中的更改

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM