To run different applications locally with independent datastore, you need to execute dev_appserver.py
in different terminal sessions.
In each execution you need to specify different --admin_port
, --port
, and --storage_path
flags so both apps can run independent to one another.
Example:
Session 1 $ dev_appserver.py <location1-to-app.yaml>/app.yaml
--admin_port=<ADMIN_PORT1> --port=<PORT1> --storage_path=<Path1>
Sesison 2 $ dev_appserver.py <location2-to-app.yaml>/app.yaml
--admin_port=<ADMIN_PORT2> --port=<PORT2> --storage_path=<Path2>
This will create different datastore files in each path.
Here’s information about dev_appserver.py
flags you may find useful.