I have checked the .forestadmin-schema.json files of my development and remote branches. They are similar.
When i have tried to send the schema to forest server manually using the forest schema:apply --secret YOUR_FOREST_ENV_SECRET command, i got the below error
Invalid json: Unexpected number in JSON at position 104989
The first message about “failed to push, source and destination…” is relevant.
To push layout changes from an environment to another, they must be compatible. The file forestadmin-schema.json must be the same for both environments. Only meta.stack inside forestadmin-schema.json can be different because it’s ignored.
To have the same files, you have to merge the development server to the staging server and restart it.
Be careful, sometimes this error happened because some versions fields are differents.
Hi @louis,
No, it is not working.
After our talk, i have removed that particular regex validation and tried to push my changes.
Still i am getting the schema mismatch error
Also, when I restart my rails server, schema file is getting changed.