Setup Prisma server in GitLab Runner


#1

Hi! I am integrating Prisma Server to our existing GraphQL infrastructure, which is currently tested in GitLab CI with GitLab Runners.
My current GitLab CI configuration is:

image: node:11.3.0

services:
  - postgres:9.6.0
# I use this to pull the Prisma image used for these tests
  - prismagraphql/prisma:1.25

variables:
  POSTGRES_USER: runner
  POSTGRES_PASSWORD: ''
  POSTGRES_DB: gitlab_ci_test
  DATABASE_URL: postgresql://runner@postgres:5432/gitlab_ci_test

#####
# Just to give you some more context, but not relevant to this question:
#####

cache:
  paths:
    - node_modules/

stages:
  - test
  - deploy

test_code:
  stage: test
  script:
    - npm install
    - npm run build
    - node build/init-db-schema.js
    - ./node_modules/.bin/nyc ./node_modules/.bin/babel-tape-runner 'src/**/*.test.js'
  coverage: /All files\s*\|\s*([0-9.]+)/

# Other tests...
# [...]

I would like to find a way to set the correct configuration for the Prisma Server since at the moment it is not working and I really don’t know how to tell Prisma to custom parameters.

Thank you! I love Prisma :heart:


#2

Hi,

You can use a PRISMA_CONFIG_PATH. Here is an example:


#3

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.