Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plush fly.toml templates - POC #3542

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Plush fly.toml templates - POC #3542

wants to merge 2 commits into from

Conversation

rubys
Copy link
Contributor

@rubys rubys commented May 11, 2024

Highlights:

  • Plush templates
  • .env files
  • --env staging

Details:

To make use of Plush templates, rename fly.toml to fly.toml.plush. This prevents existing fly.toml files from being interpreted as templates, and enables additional. templating formats to be added later.

We can provide predefined variables and functions to be referenced by templates. Additionally, variables are loaded from .env files, the OS environment, and --env flags.

More information on Plush can be found at:

https://github.com/gobuffalo/plush?tab=readme-ov-file#plush


Previously --env or -e is for environment variables, and required a syntax of name=value. If only a name is provided, treat this as if FLY_ENV=name was specified instead. Note that FLY_ENV can also be set as an environment variable.

If FLY_ENV is set, fly-${FLY_ENV}.toml and .env.${FLY_ENV} will be used.

Highlights:
  * Plush templates
  * .env files
  * --env staging

Details:

To make use of Plush templates, rename `fly.toml` to `fly.toml.plush`.
This prevents existing `fly.toml` files from being interpreted as
templates, and enables additional. templating formats to be added later.

We can provide predefined variables and functions to be referenced
by templates.  Additionally, variables are loaded from `.env` files,
the OS environment, and `--env` flags.

More information on Plush can be found at:

https://github.com/gobuffalo/plush?tab=readme-ov-file#plush

---

Previously `--env` or `-e` is for environment variables, and required a syntax
of name=value.  If only a name is provided, treat this as if `FLY_ENV=name` was
specified instead.  Note that `FLY_ENV` can also be set as an environment
variable.

If `FLY_ENV` is set, `fly-${FLY_ENV}.toml` and `.env.${FLY_ENV}` will be used.
@rubys rubys marked this pull request as draft May 11, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant