Cannot push local layout changes onto staging

I am trying to push all the layout changes I made on my local environment to staging.
Using the following command: forest push -e Staging

Getting the following error:

Error: Failed to push branch: source and destination environments must have the same schema

I check both these files are identical.

“express”: “~4.17.1”,
“database_type”: “MongoDB”,
“liana”: “forest-express-mongoose”,
“liana_version”: “7.0.1”,
project name: NachamuAdmin

Hello @aayush-sinha,

Thank you for your message and welcome the the Forest Admin community.

This message means that there is a difference within your model files, between your development and your staging environments.

The normal process to fix this is:

  • commit your code (model files, routes… and your .forestadmin-schema.json file)
  • update the files on your staging environment
  • restart the Forest Admin agent

The forest push command should work next.

Hope this helps.

Thanks for the reply @anon79585656
I merged both the branch on git. There is no difference within model files or any other files between development and staging environments.

Still getting the same error.

@aayush-sinha,

From the information I have on my side, it seems the nodeJS version on your development and staging environments are different (“10.24.1” on staging and “12.18.1” on development).
Could you try to update nodeJS on production and restart? Or downgrade it on your development, restart, and push the updated .forestadmin-schema.json file?

You can manage the installed versions of nodeJS via NVM.