Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Clojure 未找到资源:异常目录不存在:resources ring.middleware.file/sure-dir(file.clj:12)_Clojure - Fatal编程技术网

Clojure 未找到资源:异常目录不存在:resources ring.middleware.file/sure-dir(file.clj:12)

Clojure 未找到资源:异常目录不存在:resources ring.middleware.file/sure-dir(file.clj:12),clojure,Clojure,我正在Ubuntu服务器上部署一个基于luminus的Clojure项目。当我尝试启动服务器时,出现以下异常: Exception Directory does not exist: resources ring.middleware.file/ensure-dir (file.clj:12) 这是我的project.clj文件 (defproject big5 "0.1.0-SNAPSHOT" :description "FIXME: write description" :url

我正在Ubuntu服务器上部署一个基于luminus的Clojure项目。当我尝试启动服务器时,出现以下异常:

Exception Directory does not exist: resources  ring.middleware.file/ensure-dir (file.clj:12)
这是我的
project.clj
文件

(defproject big5 "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.5.1"]
                 [lib-noir "0.5.0"]
                 [compojure "1.1.5" :exclusions [ring/ring-core]]
                 [com.cemerick/friend "0.1.5"]
                 [ring-server "0.2.7"]
                 [clabango "0.5"]
                 [korma "0.3.0-RC6"]
                 [mysql/mysql-connector-java "5.1.6"]
                 [com.taoensso/timbre "2.7.1"]
                 [com.taoensso/tower "2.0.1"]
                 [com.postspectacular/rotor "0.1.0"]
                 [markdown-clj "0.9.19"]
                 [clj-json "0.5.3"]
                 [clj-time "0.6.0"]
                 [log4j "1.2.17"
                  :exclusions
                  [javax.mail/mail
                   javax.jms/jms
                   com.sun.jdmk/jmxtools
                   com.sun.jmx/jmxri]]
                 [org.slf4j/slf4j-log4j12 "1.7.5"]]
  :plugins [[lein2-eclipse "2.0.0"]
            [lein-ring "0.8.7"]
            [lein-midje "3.0.0"]]
  :ring {:handler big5.handler/war-handler
         :init    big5.handler/init
         :destroy big5.handler/destroy}
  :profiles
  {:production {:ring {:open-browser? false
                       :stacktraces?  false
                       :auto-reload?  false}}
   :dev {:dependencies [[ring-mock "0.1.3"]
                        [ring/ring-devel "1.1.8"]
                        [midje "1.5.1"]]}}
  :min-lein-version "2.0.0")

我相信Leiningen使用
resources
目录作为类路径根。通常,
resources/public
是存储静态web资产(如图像、javascript和样式表)的地方。如果你创建这些目录,你应该是好的

以下是您的一些参考资料:

最后,从luminus文档本身来看:


谢谢。我意识到git不会提交空文件夹,而我的资源文件夹是空的