wecodemore / wpstarter

Easily bootstrap whole site Composer packages for WordPress.
https://wecodemore.github.io/wpstarter/
MIT License
246 stars 35 forks source link

Allow changing the .env file #13

Closed franz-josef-kaiser closed 9 years ago

franz-josef-kaiser commented 9 years ago

As requested by @GaryJones in #12 here:

Probably related here, but I see that Dotenv supports passing in a file name.

My situation is that I've got a /var/www that contains directories for different sites. If I want to store multiple .env files, one for each site, above the public roots, I'll obviously need different filenames. Being able to pass through the file name as the second arg in the $env = WCM\WPStarter\Helpers::settings(__DIR__); call would be handy.

gmazzap commented 9 years ago

Done.