What I’m trying to do:
Run 2 apps from the same directory and on the same port (at different times of course)
What I’ve tried and what’s not working:
I can definitely run both apps alternating from the same directory, but run into issues with the database schemas overlapping for some reason:
- Run App A that has a database. Add some rows just to see that the database isn’t empty.
- Shut down App A.
- Run App B that doesn’t have a database (Anvil Extras in my case).
- Error because of a mismatch of database schema (I don’t know why since Extras doesn’t use the database).
- Shut down App B
- Restart App B with
--auto-migrate
- Shutdown App B again
- Rerun App A
- Check for the rows added above
- See that the whole database has been deleted.
I know I could run it with --ignore-invalid-schema
– which I will certainly do now – but it seems that the database of an app run from the same directory shouldn’t be cleared by running another app there too.
This is not an issue if the two app folders live in the same directory, but are run within the app folder itself with --app .