Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Environment Detection Question

Started by Muut Archive 12 years ago · 4 replies · 153 views
12 years ago

I have read that you are folding evironment detection into the "Multi-config" planned for a future update. Any chance you would be willing to share your plans for how exactly that will work? It would be great if it could be done through environment vars - something like this: https://github.com/vlucas/phpdotenv

This is a fantastic platform - thank you for creating it!

12 years ago

0.9.3 supports multiple configurations but currently that doesn't actual detect the environment. Your link is actually pretty interesting and I'm going to take a more in depth look this evening. It looks like that it might be a good option to provide some automatic setup based on env.

I plan on writing up how the multi configuration stuff works soon also. sorry for the delay on that. I'll let you know in this thread when u get that done.

12 years ago

Expect this soon! I already have it working in a new feature-branch. Didn't use phpdotenv but just a simple implementation of our multi-config based on current host/name.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1277 9 years ago
Archive · by Muut Archive, 9 years ago
2 885 9 years ago
Archive · by Muut Archive, 9 years ago
2 4014 9 years ago
Archive · by Muut Archive, 9 years ago
1 2890 9 years ago
Archive · by Muut Archive, 9 years ago
3 1074 9 years ago