I'm having some issue with `prisma deploy`. when I...
# orm-help
c
I'm having some issue with
prisma deploy
. when I run this on ubuntu, I kept getting "Service is already up to date." when in fact there is nothing generated on the database. If I run
prisma delete
, I get ERROR: GraphQL Error (Code: 400).
prisma delete --force
ran without error but doesn't seem to do anything I'm using 1.34.3 for both the CLI and server node 10.16.1 prisma.yml:
Copy code
endpoint: <http://xx.xxx.xx.xx:4466>
datamodel: datamodel.prisma

generate:
	- generator: javascript-client
		output: ./generated/prisma-client/
docker-compose.yml:
Copy code
version: '3'
services:
  prisma:
    image: prismagraphql/prisma:1.34
    restart: always
    ports:
    - "4466:4466"
    environment:
      PRISMA_CONFIG: |
        port: 4466
        # uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
        # managementApiSecret: my-secret
        databases:
          default:
            connector: mysql
            host: >-
             	someserver....
            database: dbname
            user: someuser
            password: somepassword
            rawAccess: true
            port: '3306'
            migrations: true
I tried to remove docker container and image and re-installed everything. Still get the same issue. Please help. Thanks!
h
try running with exported managementApiSecret
run
PRISMA_MANAGEMENT_API_SECRET=my-secret prisma deploy
c
that didn't fix it. I switched from remote database to using local mysql docker and now it works. This is fine for development but can't do the same for production. Do you have any other ideas to fix this? Thanks!