Clojure在Linux上重新加载浏览器 [英] Clojure live browser reload on Linux
问题描述
有像 Rack-LiveReload 这样的工具,可以与Guard-LiveReload 用于Clojure开发?我真的不能做没有现在重新加载现在,我已经使用它。如果没有什么更方便,我可以下载 LiveReload JS文件,并手动将其包括在我的应用程序中,并使用Guard- LiveReload,但我更喜欢它,如果有一个所有的Clojure解决方案。我不能在我的机器上安装LiveReload应用程序,因为我使用Linux,所以这就是为什么我需要像Guard-LiveReload。
Is there something like Rack-LiveReload that could be used along with a tool like Guard-LiveReload for Clojure development? I really cannot make do without live reloading now that I have used it. If there is nothing more convenient I could download the LiveReload JS file and manually include it in my app and use that with Guard-LiveReload, but I would prefer it if there was an all Clojure solution. I cannot install the LiveReload app on my machine because I am using Linux, so that is why I would need something like Guard-LiveReload.
我是Clojure的新手,到目前为止,我要去使用Ring和Compojure,这可能会有所帮助。
I am new to Clojure, but so far I am going to go with Ring and Compojure, which perhaps might make a difference.
推荐答案
非常容易,但使用Grunt和 https://github.com/gruntjs/grunt-contrib-watch (内置LiveReload支持),Grunt将使用任何语言。
OK, this can be done very easily, but with Grunt and https://github.com/gruntjs/grunt-contrib-watch (which has built in LiveReload support), Grunt will work with any language.
这篇关于Clojure在Linux上重新加载浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!