I want to deploy my prisma graphql server to an on...
# orm-help
i
I want to deploy my prisma graphql server to an online hosting tool with a MySql db, how can I achieve that ?
a
Did you see the deployment section here: https://www.prisma.io/docs/tutorials/?
i
Let me check it out... Thanks
Thanks for the help, but can my MySql db be hosted on another server like Webmin and not gcp ?
a
Yes, see https://www.prisma.io/docs/quickstart/connect and the 'Use your own database' tab
TL;DR: Use the connection settings to your database in the docker settings file
i
Ok, maybe I should just tell you what I want to do, I have a React frontend application and an existing MySqlDb
but I want to use graphql instead of writing apis
and I think prisma fits the job
So If I define my db schema in datamodel.graphql do I need to do any other thing before the deployment ?
a
Your Prisma server needs to live somewhere, and connect to the database, that also needs to live somewhere
So you need hosting for both
You can use Prisma Cloud, but then your Prisma server and database will both be hosted by Prisma, or you can host your own, but then you need to host both the server and the database.
i
Ok, I already hosted it on Prisma but I see a playground whenever I navigate to the web url