配置
App配置
应用基础配置(config/application.lua)
Appconf.sysconf = { --系统预加载配置文件
'v_resource',
}
Appconf.name = 'app_name' --app名称,执行vanilla new命令时给定的应用名
Appconf.route='vanilla.v.routes.simple' --路由器,指定URL路由方式,目的解析出需要执行的controller与action
Appconf.bootstrap='application.bootstrap' --初始化bootstrap(用来对应用进行初始化操作)
Appconf.app={} --app相关配置
Appconf.app.root='./' --当前vanilla start命令执行路径
Appconf.controller={} --当前app的controller相关配置
Appconf.controller.path=Appconf.app.root .. 'application/controllers/' --controller文件所在路径(使用默认生成路径即可)
Appconf.view={} --当前app的视图层相关配置
Appconf.view.path=Appconf.app.root .. 'application/views/' --模板路径
Appconf.view.suffix='.html' --模板后缀
Appconf.view.auto_render=true --是否开启自动渲染应用基础配置的引用
错误处理配置(config/errors.lua)
Restful 路由协议配置(config/restful.lua)
系统相关配置(sys/)*
系统缓存相关配置 (sys/cache)
系统缓存相关配置 (sys/v_resource)
Nginx配置
自动生成的 Nginx 配置文件
生产环境
开发环境
nginx.lua( vanilla-0.1.0.rc5 后废弃此配置 )
WAF配置
waf.lua
Last updated