I’ve set up a production and development version of the App that I am currently working on, doing the steps described here.
Now I am having the problem that whenever I try to go into the production version of the app, I end up in the development version. (And when I try to go into the development version I rightfully get to the development version)
I don’t think that’s the intended behavior, so there may be some kind of bug involved. You might be able to get some insight into it by using a tool like the one mentioned here to compare the anvil.yaml files of your Production and Development apps. You probably don’t want to completely overwrite the Production anvil.yaml file with the Development version when you do the force push. You might somehow be overwriting the App ID or something.
It turned out the two environments were set up correctly. But the name of the App that is shown in the top left corner didn’t update automatically after having cloned and renamed the App. This name:
Just clicking on the name and confirming the rename did the trick.