settingslogic icon indicating copy to clipboard operation
settingslogic copied to clipboard

array in yml is read as string on Heroku

Open nextofsearch opened this issue 14 years ago • 1 comments

Hi, I put array in yml file and it works just fine on my local test machine.

ad_sequence1: [z,z,z,z,z,z,z,z,z,z] ad_sequence2: ["z","z","z","z","z","z","z","z","z","z"]

but if I deploy the code on heroku, in a sudden it is recognized as string as below:

["z,z,z,z,z,z,z,z,z,z"] or '["z","z","z","z","z","z","z","z","z","z"]'

Can someone please enlighten me?

nextofsearch avatar Oct 30 '11 14:10 nextofsearch

I solved this problem by assigning ad_sequence as below:

ad_sequence: - z - z - z - z - z - z - z - z - z - z

nextofsearch avatar Oct 30 '11 14:10 nextofsearch