2012-02-05 142 views

回答

5

我認爲該文檔可能會與當前代碼略有不同步。現在據我可以告訴正確的命令行命令是:

flatiron create <app-name> 

這將創建一個CLI骨架應用程序和網絡應用程序,你將不得不作出的線沿線的一些更改app.js文件你可以找到在HTTP-sample.js文件:

https://github.com/flatiron/flatiron/tree/master/examples

您還需要工會添加到您的軟件包的依賴。

0

cmd:flatiron create <app-name>實際上會默認生成一個http應用程序框架。如果您在cli上輸入flatiron create --help,您將獲得:

help: Generates a flatiron skeleton application. If no <type>
help: is specified an HTTP application will be created.
help: <type> can currently be either cli or http
help:
help: create <app-name> <type>