Adding option to settings.dat.php

4 posts by 2 authors in: Forums > CMS Builder
Last Post: July 28, 2020   (RSS)

By gversion - July 26, 2020

Hello,

I am trying to add a new settings option to the settings.dat.php file.

I have placed my settings.dat.php in a data folder outside of my public folder and this is working fine.

When I add the setting option as below (in uppercase), then when I git push changes to the server the setting is removed:

'JWT' => 'XXXXX'

(where the Xs represent an API key)

If I set the option as below (in lowercase) then it is saved as I would like:

'jwt' => 'XXXXX'

Can someone please explain what might be going on here?

Thanks,

Greg

By daniel - July 28, 2020

Hi Greg,

This is an interesting issue. I couldn't find anything specific that would cause issue with the setting "JWT" vs "jwt". One question: Is it working as "JWT" in your local environment before deploying with git? My initial thoughts are that it could be something happening in the git deployment process, or perhaps server-specific settings files. A few things I would check:

  1. In the file where "jwt" worked - try changing it back to "JWT" and re-committing/deploying (if you haven't already).
  2. Double-check that the settings file that you are adding "JWT" to is the correct file being used in the deployed environment. 
    • You can check the settings file being loaded on the General Settings page in CMSB under "Server Info" where it says "To change database settings edit:"

Let me know if you have any progress with either of these or any further questions.

Thanks,

Daniel
Technical Lead
interactivetools.com

By daniel - July 28, 2020

Hey Greg,

Keep us updated if you find out anything else!

Thanks,

Daniel
Technical Lead
interactivetools.com