Jim
06/21/2018, 3:36 PMAndrew Mead
06/21/2018, 3:38 PMJim
06/21/2018, 3:39 PMAndrew Mead
06/21/2018, 3:40 PMJim
06/21/2018, 3:42 PMdpetrick
06/21/2018, 4:40 PMJim
06/21/2018, 5:00 PM$ prisma init hello-world
? Set up a new Prisma server or deploy to an existing server?
Set up a new Prisma server for local development (based on docker-compose):
Use existing database Connect to existing database
Create new database Set up a local database using Docker
Or deploy to an existing Prisma server:
james/prisclust Production Prisma cluster
Demo server Hosted demo environment incl. database (requires login)
❯ Use other server Manually provide endpoint of a running Prisma server
james at Jamess-MacBook-Pro-2 in ~/Projects/prisma/digital-ocean-demo
$ prisma init hello-world
? Set up a new Prisma server or deploy to an existing server? Use other server
? Enter the endpoint of your Prisma server <tcp://159.12.34.17:2376>
? Choose a name for your service prisma2
? Choose a name for your stage dev
Created 2 new files:
prisma.yml Prisma service definition
datamodel.graphql GraphQL SDL-based datamodel (foundation for database)
Next steps:
1. Open folder: cd hello-world
2. Deploy your Prisma service: prisma deploy
3. Read more about deploying services:
<http://bit.ly/prisma-deploy-services>
james at Jamess-MacBook-Pro-2 in ~/Projects/prisma/digital-ocean-demo
$ cd hello-world/
james at Jamess-MacBook-Pro-2 in ~/Projects/prisma/digital-ocean-demo/hello-world
$ prisma deploy
▸ <tcp://159.12.34.17:2376/prisma2/dev> is not a valid endpoint. It must start with http:// or https://
Get in touch if you need help: <https://www.prisma.io/forum/>
To get more detailed output, run $ export DEBUG="*"
╭─────────────────────────────────────╮
│ │
│ Update available 1.9.0 → 1.10.2 │
│ Run npm i -g prisma to update │
│ │
╰─────────────────────────────────────╯
james at Jamess-MacBook-Pro-2 in ~/Projects/prisma/digital-ocean-demo/hello-world
$ prisma deploy
▸ Could not connect to server at <http://159.12.34.17:2376>. Please check if your server is running.
Get in touch if you need help: <https://www.prisma.io/forum/>
To get more detailed output, run $ export DEBUG="*"
╭─────────────────────────────────────╮
│ │
│ Update available 1.9.0 → 1.10.2 │
│ Run npm i -g prisma to update │
│ │
╰─────────────────────────────────────╯
james at Jamess-MacBook-Pro-2 in ~/Projects/prisma/digital-ocean-demo/hello-world
dpetrick
06/21/2018, 6:03 PMdocker ps
(assuming it is running in the DO context)?Jim
06/21/2018, 6:06 PMjames at Jamess-MacBook-Pro-2 in ~/Projects/prisma/digital-ocean-demo/hello-world
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
494b405b02d2 mysql:5.7 "docker-entrypoint.s…" About an hour ago Up About an hour 0.0.0.0:3306->3306/tcp prisma-db
626a9919890f prismagraphql/prisma:1.3 "/app/bin/prisma-loc…" About an hour ago Restarting (1) 11 seconds ago digital-ocean-demo_prisma-database_1
dpetrick
06/21/2018, 6:09 PMdocker logs digital-ocean-demo_prisma-database_1
Jim
06/21/2018, 6:12 PMListening for transport dt_socket at address: 8000
Exception in thread "main" com.typesafe.config.ConfigException$UnresolvedSubstitution: application.conf @ jar:file:/app/lib/com.prisma.prisma-local-0.8.0-62757906db2b0a72da0d1336840e363f0c6925ca.jar!/application.conf: 54: Could not resolve substitution to a value: ${SCHEMA_MANAGER_SECRET}
at com.typesafe.config.impl.ConfigReference.resolveSubstitutions(ConfigReference.java:111)
at com.typesafe.config.impl.ResolveContext.realResolve(ResolveContext.java:179)
at com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:142)
at com.typesafe.config.impl.ConfigDelayedMerge.resolveSubstitutions(ConfigDelayedMerge.java:132)
at com.typesafe.config.impl.ConfigDelayedMerge.resolveSubstitutions(ConfigDelayedMerge.java:59)
at com.typesafe.config.impl.ResolveContext.realResolve(ResolveContext.java:179)
at com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:142)
at com.typesafe.config.impl.SimpleConfigObject$ResolveModifier.modifyChildMayThrow(SimpleConfigObject.java:379)
at com.typesafe.config.impl.SimpleConfigObject.modifyMayThrow(SimpleConfigObject.java:312)
at com.typesafe.config.impl.SimpleConfigObject.resolveSubstitutions(SimpleConfigObject.java:398)
at com.typesafe.config.impl.ResolveContext.realResolve(ResolveContext.java:179)
at com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:142)
at com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:231)
at com.typesafe.config.impl.SimpleConfig.resolveWith(SimpleConfig.java:78)
at com.typesafe.config.impl.SimpleConfig.resolve(SimpleConfig.java:68)
at com.typesafe.config.impl.SimpleConfig.resolve(SimpleConfig.java:41)
at com.typesafe.config.ConfigFactory.load(ConfigFactory.java:214)
at com.typesafe.config.ConfigFactory.load(ConfigFactory.java:182)
at com.typesafe.config.ConfigFactory$1.call(ConfigFactory.java:259)
at com.typesafe.config.ConfigFactory$1.call(ConfigFactory.java:256)
at com.typesafe.config.impl.ConfigImpl$LoaderCache.getOrElseUpdate(ConfigImpl.java:65)
at com.typesafe.config.impl.ConfigImpl.computeCachedConfig(ConfigImpl.java:92)
at com.typesafe.config.ConfigFactory.load(ConfigFactory.java:256)
at akka.actor.ActorSystem$.$anonfun$apply$4(ActorSystem.scala:241)
at scala.Option.getOrElse(Option.scala:121)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:241)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:287)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:232)
at com.prisma.local.PrismaLocalMain$.delayedEndpoint$com$prisma$local$PrismaLocalMain$1(PrismaLocalMain.scala:13)
at com.prisma.local.PrismaLocalMain$delayedInit$body.apply(PrismaLocalMain.scala:12)
at scala.Function0.apply$mcV$sp(Function0.scala:34)
at scala.Function0.apply$mcV$sp$(Function0.scala:34)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App.$anonfun$main$1$adapted(App.scala:76)
at scala.collection.immutable.List.foreach(List.scala:389)
at scala.App.main(App.scala:76)
at scala.App.main$(App.scala:74)
at com.prisma.local.PrismaLocalMain$.main(PrismaLocalMain.scala:12)
at com.prisma.local.PrismaLocalMain.main(PrismaLocalMain.scala)
dpetrick
06/21/2018, 6:14 PMJim
06/21/2018, 6:15 PMdpetrick
06/21/2018, 6:16 PMDarryl
06/21/2018, 6:50 PMhttps://www.youtube.com/watch?v=wTrPoeF-il0▾
Jim
06/21/2018, 6:52 PMDarryl
10/14/2019, 4:19 PMChad H
10/19/2019, 2:25 AMDarryl
10/19/2019, 5:14 AMChad H
10/19/2019, 10:36 AMDarryl
10/19/2019, 3:03 PMdivyendu
10/21/2019, 8:49 AMDigitalOcean PG, it works fine but connection pooling doesn't work with prismaIDK why pooling won't work, Prisma 1 makes a connection pool internally 🤔
DigitalOcean MySQL, this is not an option at all. DO only has Mysql 8 and prisma does not support itThis sounds correct, I didn't know that they only support MySQL 8
I also tried scalegrid and it doesn't work there either. It keeps complainning about "require_secure_transport".SSL and Prisma 1 with Postgres should work, you might need to provide specific SSL options. Not sure why it didn't work for you.
Darryl
10/21/2019, 9:00 AMdivyendu
10/21/2019, 9:01 AMThanks. I've built everything on PG so far so that's a bit of a pain. I had no idea until recently that I'd have an issue with MySQL.Hosted MySQL on RDS for example is an option!
Chad H
10/21/2019, 9:27 AM