0
I am working on the Heroku tutorial開始使用Clojure,但我遇到了我的文件的名稱和位置的困難。用Clojure在Heroku中組織項目文件的最佳方式是什麼?
我按照說明將源文件world.clj
放在src:src/hello/world.clj
中。這是我現在的目錄
C:\用戶\ A \ Clojure的\ P2 \ HelloWorld的\ SRC \你好\ world.clj
這是我project.clj
(defproject helloworld "1.0.0-SNAPSHOT"
:description "helloworld project to test heroku and clojure"
:url "http://helloworld.herokuapp.com"
:license {:name "license1"
:url "http://example.com/FIXME"}
:dependencies [[org.clojure/clojure "1.4.0"]
[compojure "1.1.1"]
[ring/ring-jetty-adapter "1.1.0"]
[ring/ring-devel "1.1.0"]
[ring-basic-authentication "1.0.1"]
[environ "0.2.1"]
[com.cemerick/drawbridge "0.0.6"]]
:min-lein-version "2.0.0"
:plugins [[environ/environ.lein "0.2.1"]]
:hooks [environ.leiningen.hooks]
:profiles {:production {:env {:production true}}})
當我嘗試在本地運行此項與lein run -m hello.world 5000
我收到以下錯誤
C:\Users\a\CLOJURE\P2>lein run -m hello.world 5000
java.io.FileNotFoundException: Could not locate hello/world__init.class or
hello/world.clj on classpath:
....
你能解釋什麼是組織我的文件和命名約定的最佳方式?
編輯
我創建了一個CLASSPATH
作爲一個環境變量,並添加C:\Users\a\CLOJURE\P2\helloworld\src\hello
但我仍然得到同樣的錯誤。
看看這個https://github.com/Funfun/hello_heroku/tree/master/clojure – CodeGroover
我有我的文件設置完全相同的方式,但我仍然得到同樣的錯誤。 – Zeynel
我所有的人都跑得很好。 http://pastie.org/8379858 Windows操作系統,你可以看到。作爲一個例子改變你的project.clj。 – CodeGroover