Skip to content

← All questions

Four environments, same app — how should base URLs be laid out so nobody copies the wrong one?

Asked 6,740 views3 answers

We are moving off a home-grown runner where the base URL was a giant switch statement in a helper. Four targets: a stack we bring up on the laptop, a shared dev box, staging and a read-only production smoke.

What does the idiomatic layout look like here? One file per target, or one file with a map inside it?

asked by Helle Borg352 ·

3 answers

Know the answer?

Reviewed before it appears. Wrap commands and output in triple backticks and they will render as a code block.

Have a different question? Ask it.

Related