Sha256: 2be71d7cd878e6ef04566963d64d0696ad1c23ec4f0d32d75998a6ed2f040766
Contents?: true
Size: 1.62 KB
Versions: 3
Compression:
Stored size: 1.62 KB
Contents
Pakyow::Config.register(:app) { |config| # if true, the app will be reloaded on every request config.opt :auto_reload # if true, errors are displayed in the browser config.opt :errors_in_browser # the location of the app's root directory config.opt :root, File.dirname('') # the location of the app's resources config.opt :resources, lambda { @resources ||= { default: File.join(root, 'public') } } # the location of the app's source code config.opt :src_dir, lambda { File.join(root, 'app', 'lib') } # the environment to run in, if one isn't provided config.opt :default_environment, :development # the default action to use for routing config.opt :default_action, :index # if true, all routes are ignored config.opt :ignore_routes, false # if true, views are visible without a route defined config.opt :all_views_visible, true # whether or not pakyow should log to stdout config.opt :log_output, true # whether or not pakyow should write to a log config.opt :log, true # whether or not pakyow should serve static files config.opt :static, true # stores the path to the app definition config.opt :path, lambda { Pakyow::App.path } # stores the envs an app is run in config.opt :loaded_envs }.env(:development) { |opts| opts.auto_reload = true opts.errors_in_browser = true opts.static = true }.env(:staging) { |opts| opts.auto_reload = false opts.errors_in_browser = true opts.log_output = false opts.static = true }.env(:production) { |opts| opts.auto_reload = false opts.errors_in_browser = false opts.log_output = false opts.static = true }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pakyow-core-0.10.2 | pakyow-core/lib/core/config/app.rb |
pakyow-core-0.10.1 | pakyow-core/lib/core/config/app.rb |
pakyow-core-0.10.0 | pakyow-core/lib/core/config/app.rb |