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.

Support

Prevent plugins from generating environment-specific configs?

Solved by paul View solution

Started by paul 6 years ago · 1 replies · 357 views
6 years ago

I'm developing locally and using local and staging environment configs. When I make changes to plugin settings through the admin panel while working in, say, localhost, the plugin saves its settings in user/localhost/config/plugins.

I realize that's expected behavior, but is there any way to force them to save to the global config?

6 years ago Solution

Ok, I think I answered my own question.

Be sure the user level config is correct then delete the environment level config:
user/localhost/config/plugins/some-plugin.yaml

Then use a relative symlink (previous version of this post did not use relative symlinks) to point the environment config to the user level config. For example, if the environment is localhost, starting from grav root:

cd user/localhost/config/plugins
ln -s ../../../config/plugins/some-plugin.yaml some-plugin.yaml

last edited 09/22/20 by paul

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 60 16 hours ago
Support · by Anna, 3 days ago
2 66 19 hours ago
Support · by Justin Young, 20 hours ago
1 34 19 hours ago
Support · by Duc , 1 week ago
2 70 6 days ago
Support · by Colin Hume, 1 week ago
2 61 6 days ago