2011-09-04 70 views

回答

5

是的,它有一個命令。 Just run play install #your-module-name#

還仔細閱讀documentation

+3

這只是對問題的部分回答。播放'install'將下載並部署模塊,而不是在應用程序中播放。要在應用程序中使用模塊,您仍然需要編輯dependenties.yml並在應用程序上運行「play dependencies」。 –

4

每Codemwnci我的問題(How should I be declaring and exporting modules?),更好的方法來添加模塊是當你創建你的應用程序,就像這樣:

play new myapp --with crud,secure 

這增加了應用程序dependencies.yml,這是他們的首選之地這些天。如果你已經有一個現有的應用程序,例如

- play -> crud 
- play -> secure 

添加到dependencies.yml和運行play dependencies安裝。 (如果您使用的是Eclipse,則後接play eclipsify等。)

相關問題