1

I've one integration environment it was working well but one of my developers deleted the env.php, now I can't make it work again.

How could I find my database credentials to my integration env in my Magento Cloud panel or configurations?

1
  • only env.php store database details in file. in your case please check your old backup of app folder (if its you have). that can only helps you. Commented Jun 1, 2021 at 3:29

2 Answers 2

3

In your terminal, you might see the data to do the connection between the services with this Magento Cloud CLI command below.

magento-cloud relationships -e environment

environment = integration|staging|production

1

Please let me know if it works for you;

  1. Access your magento cloud via ssh and then run that comment:

$ echo $MAGENTO_CLOUD_RELATIONSHIPS

  1. decode the result of that is over base64 encoding:

$ php -r "echo json_encode(base64_decode('BASE_64_RESULT'));"

It must show the value you want.

Good Luck.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.