KyleG
04/24/2018, 9:07 PMnilan
04/24/2018, 9:12 PMnilan
04/24/2018, 9:12 PMKyleG
04/24/2018, 9:14 PMKyleG
04/24/2018, 9:14 PMKyleG
04/24/2018, 9:14 PMKyleG
04/24/2018, 9:16 PMkyleg@kmgmbp:~/git/javrater-webapp/server-prisma/database$ docker-compose up
Pulling prisma (prismagraphql/prisma:1.7)...
1.7: Pulling from prismagraphql/prisma
ff3a5c916c92: Already exists
b2573fe715ab: Already exists
5512626b3241: Already exists
a29d24a28775: Already exists
12b344b6b5be: Already exists
e4961dac57aa: Already exists
e4bc74c68b3d: Already exists
d6272350bd2c: Already exists
44409604134f: Already exists
Digest: sha256:aceeef33818d6220901bd9ef84f4fcca97f6f36f9ce01b325e0712696348994a
Status: Downloaded newer image for prismagraphql/prisma:1.7
pt 1KyleG
04/24/2018, 9:16 PMStarting database_prisma_1 ... done
Attaching to database_prisma_1
prisma_1 | Exception in thread "main" java.lang.RuntimeException: Unable to load Prisma config: com.prisma.config.InvalidConfiguration: Expected hash under 'databases' to be non-empty
prisma_1 | at scala.sys.package$.error(package.scala:27)
prisma_1 | at com.prisma.config.ConfigLoader$.load(ConfigLoader.scala:38)
prisma_1 | at com.prisma.local.PrismaLocalDependencies.<init>(PrismaLocalDependencies.scala:38)
prisma_1 | at com.prisma.local.PrismaLocalMain$.delayedEndpoint$com$prisma$local$PrismaLocalMain$1(PrismaLocalMain.scala:15)
prisma_1 | at com.prisma.local.PrismaLocalMain$delayedInit$body.apply(PrismaLocalMain.scala:12)
prisma_1 | at scala.Function0.apply$mcV$sp(Function0.scala:34)
prisma_1 | at scala.Function0.apply$mcV$sp$(Function0.scala:34)
prisma_1 | at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
prisma_1 | at scala.App.$anonfun$main$1$adapted(App.scala:76)
prisma_1 | at scala.collection.immutable.List.foreach(List.scala:389)
prisma_1 | at scala.App.main(App.scala:76)
prisma_1 | at scala.App.main$(App.scala:74)
prisma_1 | at com.prisma.local.PrismaLocalMain$.main(PrismaLocalMain.scala:12)
prisma_1 | at com.prisma.local.PrismaLocalMain.main(PrismaLocalMain.scala)
database_prisma_1 exited with code 1
pt2/2KyleG
04/24/2018, 9:17 PMException in thread "main" java.lang.RuntimeException: Unable to load Prisma config: com.prisma.config.InvalidConfiguration: Expected hash under 'databases' to be non-empty
nilan
04/24/2018, 9:19 PMdocker kill $(docker ps -aq)
and docker rm $(docker ps -aq)
?nilan
04/24/2018, 9:20 PMKyleG
04/24/2018, 9:24 PMKyleG
04/24/2018, 9:25 PMKyleG
04/24/2018, 9:26 PMKyleG
04/24/2018, 9:27 PMKyleG
04/24/2018, 9:27 PMversion: '3'
services:
prisma:
image: prismagraphql/prisma:1.7
restart: always
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
KyleG
04/24/2018, 9:33 PMnilan
04/24/2018, 9:35 PMnilan
04/24/2018, 9:36 PMKyleG
04/24/2018, 9:39 PMversion: '3'
services:
prisma:
image: prismagraphql/prisma:1.7
restart: always
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
databases:
default:
connector: mysql
active: true
host: db
port: 3306
user: root
password: prisma
db:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: prisma
KyleG
04/24/2018, 9:39 PMKyleG
04/24/2018, 9:39 PMKyleG
04/24/2018, 9:39 PMException in thread "main" java.sql.SQLTransientConnectionException: database - Connection is not available, request timed out after 5002ms.
KyleG
04/24/2018, 9:40 PMKyleG
04/24/2018, 9:40 PMnilan
04/24/2018, 9:40 PMKyleG
04/24/2018, 9:42 PMdb:
and below - I had only copied what was under databases:
)KyleG
04/24/2018, 9:43 PMKyleG
04/24/2018, 9:50 PMroot
and password graphcool
- was that changed?KyleG
04/24/2018, 9:52 PM"Project not found: 'server-prisma@dev'"
("server-prisma" is the very generic name of my server, so originally my database was called server-prisma@dev)KyleG
04/24/2018, 9:57 PMprisma
I see.KyleG
04/24/2018, 10:08 PMserver-prisma@default
instead of server-prisma@dev
and I'm still getting the "Project not found: 'server-prisma@dev'"
error. Suggestion on how to change that dev
to a default
?KyleG
04/24/2018, 10:09 PMKyleG
04/24/2018, 10:18 PMprisma deploy
about my .env file not being read. Realized I needed to run prisma deploy
from the server's root directory and not from ./database (where I was located while running docker-compose up). Deploy read PRISMA_STAGE
correctly and now I have a properly named database and things are working again!nilan
04/25/2018, 8:10 AM