• 命令行工具
    • Build and Run

    命令行工具

    Build and Run

    为了使用Revel,必须构建Revel命令行工具:

    1. $ go get github.com/revel/revel/revel

    现在运行它:

    1. $ bin/revel
    2. ~
    3. ~ revel! http://revel.github.com/revel
    4. ~
    5. usage: revel command [arguments]
    6. The commands are:
    7. new create a skeleton Revel application
    8. run run a Revel application
    9. build build a Revel application (e.g. for deployment)
    10. package package a Revel application (e.g. for deployment)
    11. clean clean a Revel application's temp files
    12. test run all tests from the command-line
    13. Use "revel help [command]" for more information.

    关于每条命令的含义,请参阅该工具的内置帮助功能。