Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[appserver-io/appserver] Allow different environments aka stages with corresponding configuration #940

Closed
akleiber opened this issue Dec 7, 2015 · 3 comments

Comments

@akleiber
Copy link

akleiber commented Dec 7, 2015

To quickly explain what this issue is about I am quoting Symfony here:

Every application is the combination of code and a set of configuration that dictates how that code should function. The configuration may define the database being used, if something should be cached or how verbose logging should be.

The simplest use case would be to have different hosts for an applications datasources for the different environments (development, testing, production).

Another use case would be to execute different provisioners for the different stages. Or to make provisioners behave differently for the different stages.
I.e. for the development environment I want a provisioner to always create a default database entry in the admin table with username admin and password admin when the entry does not exist. But in production I want the password to be something more secure.

@wagnert We talked about this on gitter this morning. I can add some more use cases if you'd like me to.

@smolinari
Copy link
Contributor

I can add a usecase too, I think. A form of PaaS appserver environment, where each virtual host is hosting different customers, with different database access, different applications and extensions, etc. Then also a provisioning system, so copies or "Sandboxes" of the appserver "environments" can be created. I'm not too sure how much of that would be appserver responsibility, but if it can happen within single appservers, it would be really cool. 😉

Scott

@wick-ed wick-ed changed the title allow different environments aka stages with corresponding configuration [appserver-io/appserver] Allow different environments aka stages with corresponding configuration Dec 7, 2015
@wick-ed wick-ed added this to the Release 1.2.0 "Iron ?" milestone Dec 7, 2015
@wick-ed
Copy link
Member

wick-ed commented Dec 7, 2015

Possible implementation might be along the lines of dotenv: see https://github.com/vlucas/phpdotenv
This would utilize a special way to map sensitive data.

@smolinari
Copy link
Contributor

Yes, that sounds like a step in the right direction to me. 👍

Scott

wick-ed added a commit that referenced this issue Apr 28, 2016
[#940] Application context for loading different configuration based on environment
wagnert added a commit that referenced this issue Apr 29, 2016
Closed #940 Allow different environments aka stages with corresponding configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants