Skip to content

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

License

Notifications You must be signed in to change notification settings

develomark/prisma-now

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published