Can I load arbitrary ACP settings from a file?
-
I'm trying to set up a staging environment, but a lot of my setup depends on my settings. I don't want to have to duplicate them every time I change something. Is there a way to sync all ACP, perhaps in a file?
Edit: I also want to sync the installed plugins, but I can already do that with package.json.
-
I believe you could do this with a quick database script. All of the ACP settings AFAIK are held in the
config
object. -
Hmm, I guess that would be the way then. Are the ones in the config object also plugin options, or only general ones?
-
Only options in core are stored there. Plugin options are left up to the plugins, though most would be in
settings:[plugin name]
. -
Alright, thanks.
-
@PitaJ Ahh... Yeah this was looking fine, but I've encountered a problem with exporting the local login setting. Earlier it was in the config object, but now that has been obsoleted and it's a "group privilege". I find the database structure of groups and their privileges a big confusing. Do you think you could help me figure out how to export that general setting in the current situation?
-
@Ludvig-Janiuk I'm not well acquainted with that but I think @baris should be able to help
-
Thank you, I didn't try that approach, instead, I realized I can change the settings directly from the code. So I'm baking in my settings into my plugin and setting them in the init.