Dev vs Prod

I want my Dev, Test and Stage environments to be identical to Production... but not too identical!
Dev, Test, Stage, and any other environment should match Production as closely as possible.

But they should have their own:

  • Settings
  • Services (e.g. Database)
  • Domains
  • API keys
Unless you're doing load testing, they should be on smaller containers to save resources.
Environment variables get added to each new environment.

Use these for things like API keys that differ between
Production and non-Production environments.

Master has a Production payment gateway key.

All other environments inherit the Sandbox key.

New environments inherit variables when created.

Developers don't need to worry about using correct settings.

Non-production environments are scaled down to save costs.

Larger sizes are available if your app needs extra resources.