joeljuca / joelwallis.github.io

Technical blog (unix, webdev, open source, opinions, etc.)
http://joelwallis.com
2 stars 0 forks source link

Softwares that works well on multiple environments #6

Open joeljuca opened 8 years ago

joeljuca commented 8 years ago

Multiple environments are a challenge that's often underestimated by developers and/or architects.

joeljuca commented 8 years ago

Thinks to talk about when writing about this:

joeljuca commented 8 years ago

The Twelve-Factor App

  1. One codebase tracked in revision control, many deploys
  2. Explicitly declare and isolate dependencies
  3. Store config in the environment
  4. Treat backing services as attached resources
  5. Strictly separate build and run stages
  6. Execute the app as one or more stateless processes
  7. Export services via port binding
  8. Scale out via the process model
  9. Maximize robustness with fast startup and graceful shutdown
  10. Keep development, staging, and production as similar as possible
  11. Treat logs as event streams
  12. Run admin/management tasks as one-off processes
joeljuca commented 8 years ago

Examples w/ WordPress (my file wp-config-local.php) and/or Node.js (environment variables)