expandedfronts / revisr

Revisr: Git for WordPress
https://revisr.io
GNU General Public License v3.0
195 stars 41 forks source link

Use environment variables to switch between staging/production/development automatically #38

Closed cromulus closed 9 years ago

cromulus commented 9 years ago

I don't know if this is possible, but it would be great to be able to have revisr detect what config to load based on an environment variable.

I'd love to be able to use chef to provision machines automatically using Revisr and an environment variable.

Is this currently possible and just not in the docs?

Thanks!

mattgrshaw commented 9 years ago

Hello,

Can you please let me know which config you're referring to (the WordPress config file, or settings specific to Revisr?)

Currently, Revisr stores some environment-specific settings such as the MySQL path, the auto-push/auto-pull settings, the Development URL, etc. in the local ".git/config" file for the repo. This lets Revisr store settings that aren't tracked in the repo so they can be separate on each environment.

cromulus commented 9 years ago

ahh, ok. that makes sense. Thanks!