3
A
回答
5
首先,確保您使用的是最新的版本rebar
,說從2012年或以後四月(rebar
提交dc472b
或更高版本),因爲它的變化作了2012年初專門爲Yaws等項目提供支持。
要使用雅司病作爲依賴,指定以下在rebar.config
文件:
{deps, [{yaws, ".*", {git, "git://github.com/klacke/yaws", {branch, "master"}}}]}.
您可以用特定的雅司病標籤更換{branch, "master"}
的一部分,如果你喜歡:
{deps, [{yaws, ".*", {git, "git://github.com/klacke/yaws", {tag, "yaws-1.94"}}}]}.
注,不過,由於Yaws專門爲rebar
構建支持而進行的更改,因此我不建議使用低於Yaws 1.94的版本。
如何實際運行Yaws取決於您的應用程序如何使用它。在an embedded fashion中使用它可能最適合用於鋼筋構建的應用程序,因爲這樣您將不會對yaws.conf
文件產生任何依賴關係。但是,如果你想運行雅司病作爲一個獨立的Web服務器,你可以建立你的依賴和你的應用程序,然後run Yaws interactively這樣的:
rebar get-deps compile
./deps/yaws/bin/yaws -i -pa ebin
這將使用在./deps/yaws/etc/yaws/yaws.conf
中的默認yaws.conf
文件,您可以修改如所須。以這種方式啓動Yaws不會在加載路徑中包含任何其他應用程序的鋼筋依賴關係的目錄,但可以使用其他-pa
選項向Yaws或specifying them in the yaws.conf
file添加必要的路徑。
相關問題
- 1. Yaws - socket_closed_remotely
- 2. YAWS Websocket問題
- 3. YAWS面向Tomcat
- 4. 如何在yaws文件裏面包含yaws文件
- 5. 運行Yaws應用程序
- 6. Maven:jar -with-dependencies + JavaDoc
- 7. Angular 2 \ Node Dependencies
- 8. maven dependencies groovy
- 9. Flask App Postgres Dependencies
- 10. Tableview item dependencies javafx
- 11. rebar和rebar3有什麼區別?或erlang.mk
- 12. 如何設置Yaws yapp?
- 13. Erlang和YAWS安裝在Windows
- 14. Yaws未加載yaws_dynopts模塊
- 15. YAWS:從1.87移植到2.0.4
- 16. 編譯並運行Yaws appmods
- 17. maven jar -with-dependencies log4j
- 18. Drools hello world maven dependencies
- 19. jboss-common-core maven dependencies
- 20. Maven和spring-boot-dependencies
- 21. NuGet「Gather Dependencies」掛起
- 22. 在jBoss AS中創建模塊AS
- 23. Moqui Component with Gradle Maven Repo Dependencies
- 24. PHP Pear Package Dependencies問題
- 25. maven-publish multi-project artifact dependencies
- 26. missing .dependencies in user /當bin/grav
- 27. Gemfile gem installation and gemspec dependencies
- 28. tomcat找不到maven dependencies
- 29. Office Outlook 12 Interop DLL Dependencies
- 30. spring 3.1 maven dependencies和pom.xml
非常感謝,史蒂夫。 – 2012-08-10 15:25:20
最近我很喜歡螺紋鋼的自動化,所以我想要使用嵌入式雅司,所以我在yarws-1.99中添加了對鋼筋配置的要求。有很多奇怪的抱怨,例如,重複的.src文件。另外,我是否需要在deps/yaws dir內部做更多的魔術,例如,收到諸如「Can not exec」libtoolize「之類的投訴:在/ usr/bin/autoreconf第196行沒有這樣的文件或目錄。」 – mattias 2015-01-18 12:11:43
@mattias:你想運行'make'來構建Yaws嗎? Yaws同時支持自動工具和螺紋鋼,但螺紋鋼沒有「製造」目標。你需要直接運行'rebar compile'來用鋼筋建立Yaws。 – 2015-01-18 15:57:45