ccw clojure设置了麻烦

时间:2014-07-22 02:15:59

标签: eclipse clojure counterclockwise

我一直在使用eclipse +逆时针进行clojure开发,只使用默认模板进行非基于Web的工作。但是,我现在想将我的环境连接到我的localhost apache服务器。我开始了一个新项目,并将模板从默认更改为clojure-app,它确实在project.clj文件中提供了一个基于Web的框架,如下所示:

(defproject guestbook "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:dependencies [[org.clojure/clojure "1.6.0"]
             [compojure "1.1.6"]
             [hiccup "1.0.5"]
             [ring-server "0.3.1"]]
:plugins [[lein-ring "0.8.10"]]
:ring {:handler guestbook.handler/app
     :init guestbook.handler/init
     :destroy guestbook.handler/destroy}
:aot :all
:profiles
{:production
{:ring
{:open-browser? true, :stacktraces? false, :auto-reload? false}}
:dev
{:dependencies [[ring-mock "0.1.5"] [ring/ring-devel "1.2.1"]]}})

接下来,我尝试通过终端中的lein ring服务器设置ring。但是我收到了这个错误:"' ring'不是一项任务。请参阅&lein help'。"我不知道如何继续,或者我可以做些什么来启动localhost服务器。

0 个答案:

没有答案