سؤال

I am developing a Symfony2 webapp and I have different deployments (develop, staging, productive). Is it recommended to use different secrets in my app/config/parameters.yml or should I use same secrets for each deployment?

Will any problems occur if I don't use the same secrets or will any occur if I do use the same ones?

هل كانت مفيدة؟

المحلول

Using different secrets in different environments is inevitable. To elaborate, you wont probably want to use same database (if database is not located in localhost) for both production and development, for example.

On the other hand, this is why parameters.yml put in .gitignore by default.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top