Setting options
Various Bootleg options can be set to help tailor the building and deploying of your application.
Setting config options¶
Options can be set in the main configuration file or within an environment configuration file.
config/deploy.exs
1 2 | use Bootleg.DSL config :build_type, :local |
Tip
The config macro is used here to set internally-used options, but you can also use it via config/1
and config/2
to read and set your own arbitrary key-value pairs. See the built-in macros for more information.
Overriding options from deployment environments¶
config/deploy.exs
1 2 | use Bootleg.DSL config :build_type, :local |
Setting the same option in an environment configuration file will override the existing value when running in that environment:
config/deploy/production.exs
1 2 3 | use Bootleg.DSL config :build_type, :remote role :remote, "buildprod.example.com", workspace: "/opt/build" |
For the full list of options you can set, see the options reference page.