Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Allow specifying .toml file in wrangler build #302

Closed
ghost opened this issue Jul 5, 2019 · 3 comments
Closed

Allow specifying .toml file in wrangler build #302

ghost opened this issue Jul 5, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 5, 2019

Currently, wrangler build uses the wrangler.toml file, but there are situations where it would be ideal to have multiple deploys of the same code, either for staging environments or for situations where you want to deploy to multiple zones or routes.

This would work well with the addition of the kv namespace bindings (#299), so that you could have a test namespace, with a test script, by specifying a "wrangler-test.toml" file.

I suggest wrangler build -c <file>.

This of course can be solved via a build script as well, but I'd prefer to have something baked in.

@EverlastingBugstopper
Copy link
Contributor

This seems like an alternative solution to what is proposed here: #220

cc: @xtuc

@ghost
Copy link
Author

ghost commented Jul 8, 2019

Yes, that could work.

There may be advantages to allow specifying a file instead of an env, so that you can deploy one script to multiple different zones?

Edit: I see it was proposed to allow arbitrary environments, that could work. We can close this.

@EverlastingBugstopper EverlastingBugstopper added duplicate and removed feature Feature requests and suggestions status - waiting on response labels Jul 8, 2019
@EverlastingBugstopper
Copy link
Contributor

EverlastingBugstopper commented Jul 8, 2019

Thanks! Closing in favor of #220

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant