Vapor Command API
2022-04-09 本文已影响0人
不进则退
运行vapor项目:
swift run
或者vapor run serve
或者指定host和portvapor run serve -b 0.0.0.0:80
migrate:vapor run migrate
查看路由:swift run Run routes
单元测试:swift test
查看更多命令:swift run Run --help
运行vapor项目:
swift run
或者vapor run serve
或者指定host和portvapor run serve -b 0.0.0.0:80
migrate:vapor run migrate
查看路由:swift run Run routes
单元测试:swift test
查看更多命令:swift run Run --help