Initializers

Jets supports custom initalization by running your app’s config/initalizers files during the bootup process.

Common Initializers

Common initializers always get run and go in the config/initializers folder. Here’s an example:

config/initializers/custom.rb:

Jets.application.config.silly = ActiveSupport::OrderedOptions.new
Jets.application.config.silly.name = "FooBar"

Environment Initializers

Jets supports environment specific initializers also. Examples:

config/environments/development.rb:

Jets.application.configure do
  config.function.memory_size = 1536
end

config/environments/production.rb:

Jets.application.configure do
  config.function.memory_size = 2048
end

Pro tip: Use the <- and -> arrow keys to move back and forward.

Edit this page

See a typo or an error? You can improve this page. This website is available on GitHub and contributions are encouraged and welcomed. We love pull requests from you!