prisma-now icon indicating copy to clipboard operation
prisma-now copied to clipboard

An example of prisma server deployment to Zeit Now with build-time environment variables.

prisma-now

An example of prisma server deployment to Zeit Now with build-time environment variables.

How to use

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 Dockerfilewith the version of prisma you wish to deploy from dockerhub:

FROM prismagraphql/prisma:1.13-beta
...

Then you are ready to deploy!

> now

Extended Tutorial

https://www.prisma.io/docs/tutorials/deploy-prisma-servers/zeit-now-and-google-cloud-sql-mohj5eiwot

License

This project is licensed under the MIT License - see the LICENSE.md file for details