Issue Description
Create a demo and bring it down using docker-compose down. It retains the volumes. The next demo that is created still points to the previous data volumes and gives misleading messages while creating user and shop.
Steps to Reproduce
- Create a new demo from scratch using
reaction create-project demo demo1. Create a user with username admin@localhost.com and a shop.
- Next
cd demo1, docker-compose down and check for volumes using docker volume ls, you will find demo1_mongo-db4demo
cd .. and create a new demo using reaction create-project demo demo2. Create the same user with username admin@localhost.com, it gives a user exists error from GraphQL. Try creating a different user, it prompts for new shop creation. When you click create shop it gives an Access denied error from GraphQL.
Possible Solution
Two different demos should be working independently as we are currently not imposing any limits on demo. Following dev platform we could limit it to one demo per installation.
Issue Description
Create a demo and bring it down using docker-compose down. It retains the volumes. The next demo that is created still points to the previous data volumes and gives misleading messages while creating user and shop.
Steps to Reproduce
reaction create-project demo demo1. Create a user with usernameadmin@localhost.comand a shop.cd demo1,docker-compose downand check for volumes usingdocker volume ls, you will finddemo1_mongo-db4democd ..and create a new demo usingreaction create-project demo demo2. Create the same user with usernameadmin@localhost.com, it gives a user exists error from GraphQL. Try creating a different user, it prompts for new shop creation. When you click create shop it gives an Access denied error from GraphQL.Possible Solution
Two different demos should be working independently as we are currently not imposing any limits on demo. Following dev platform we could limit it to one demo per installation.