hello, last year we finished our deploy for an app with scriptcase, and I used a trick back then, to avoid for each deploy to have to re insert the connection details.
As I deploy the app with Docker, I create a file “prod.config.php” with the DB connection values, so after the deploy it automatically retrieves the connection.
Now we are changing connection server, so the connection data will be different, and I just wanted to quickly update the encoded string connection,
usually I would need change the code of my Docker container and remove the “prod.config.php” part, then redeploy and recreate the new connection, SSH into my docker container and copy the string in the generated “prod.config.php” file to have the new encoded connection info.
To avoid all this, I could simply decode the current prod.config.php string, change the connection value, and encode it back.
But I don’t know what encoding is scriptcase using! The string format is:
“<?php /*a:2:{s:7:“PROFILE”;a:1:{s:14:“xxxxxxxxxxxxx”;a:29:{s:8:“USE_HOST”;s:1:“Y”;s:…”
I want to decode this, change some value, and encode it back, but how?