Reputation: 1504
i am just starting to use the promising project https://github.com/graphcool/prisma
i have some questions on how to use it:
thx in advance for answering!
ad 1. i tried sudo prisma local start --name test1
(got the result that i have to stop my already running default local development cluster) so how can i maybe change the port which will be used?
ad 3. i think i can only nuke a complete cluster (is there a way to only nuke one apps data?)
Upvotes: 0
Views: 354
Reputation: 962
first, I think that what you mean with a cluster is actually a service. A cluster can hold multiple services, whereas the service is an instance you are connecting to with your client/server.
You can have multiple named services in your localhost cluster. The only limit is a unique name and different stage per name. I think it might be possible to have multiple clusters but I see no use for it - at least locally.
In order to delete a service and its data, you can use the following command. Go to the root of your project - where your Prisma service is defined and run the following command.
prisma delete
This will delete the service, including all of its data, you have defined in your current project file but will leave every other service you have in your cluster untouched.
I think that 2. solves this.
Hope I am not missing anything.
Upvotes: 1