2014-03-14 38 views
0

我想使用yoeman進行codeigniter項目。我使用發電機從這個: https://github.com/homerjam/generator-codeigniteryeoman for codeigniter不設置咕嚕任務服務器

,但我有一個問題,當我運行的呼嚕聲,然後出現一個通知如下圖所示:

Warning: Task "server" not found. Use --force to continue. 

Aborted due to warnings. 

如何固定的警告?以及如何使庫(如:/ bower_component)遵循以下codeigniter模板規則?

回答

1

據我所知,該生成器不包括服務器任務。這很有意義,因爲grunt-contrib-connect(這是Grunt任務中常用的服務器)對CodeIgniter等PHP框架沒有任何用處,因爲它不會執行PHP。您需要使用PHP開發服務器(在PHP 5.4及更高版本中使用-S選項),或者安裝適當的Web服務器(如Apache)。