# 查看支持的所有参数
./fireboom dev --help
Start the fireboom application in development mode and watch for changes
Usage:
fireboom dev [flags]
Examples:
./fireboom dev
Flags:
--active string Mode active to run in different environment
--enable-auth Whether enable auth key on dev mode
-h, --help help for dev
--web-port string Web port to listen on (default "9123")
指定面板端口
默认情况下,控制台监听端口:9123,通过参数--web-port可指定端口。
fireboom start --web-port 9123
指定环境变量
默认情况下,环境变量用文件:.env 。
使用 --active 参数,指定启用的环境变量。
./fireboom dev --active test
例如,上述命令指定激活的环境变量文件为:.env.test 。
开启面板保护
使用参数--enable-auth,开启面板保护,开启后输入秘钥才能访问控制台。
./fireboom dev --enable-auth
秘钥位于根目录的authentication.key文件中。
生产模式
cd project-name
./fireboom start
飞布将执行下述逻辑:
启动控制台:启动控制台,但需要输入秘钥才能访问
启动API:根据历史配置启动核心引擎,暴露 REST API 服务。(见上述步骤4)
生产模式下,通过界面修改配置,不会触发自动编译,以保证服务稳定。
帮助命令
# 查看支持的所有参数
./fireboom start --help
Start the fireboom application in production mode without watching
Usage:
fireboom start [flags]
Examples:
./fireboom start
Flags:
# 同上
--active string Mode active to run in different environment (default "prod")
--enable-swagger Whether enable swagger in production
--enable-web-console Whether enable web console page in production (default true)
-h, --help help for start
--regenerate-key Whether to renew authentication key in production
# 同上
--web-port string Web port to listen on (default "9123")