An example of prisma server deployment to Zeit Now with build-time environment variables.
Create now secrets for your sql and prisma api passwords:
> now secret add sql-password <your_value>
> now secret add prisma-management-api-secret <your_value>
Amend now.json
to point to your SQL Server:
(This can be hosted anywhere, Google Cloud, AWS etc.)
...
"SQL_HOST": "<your_sql_host>"
...
Edit Dockerfile
with the version of prisma you wish to deploy from dockerhub:
FROM prismagraphql/prisma:1.13-beta
...
Then you are ready to deploy!
> now
https://www.prisma.io/docs/tutorials/deploy-prisma-servers/zeit-now-and-google-cloud-sql-mohj5eiwot
This project is licensed under the MIT License - see the LICENSE.md file for details