Does anybody know how i can deploy a prisma server...
# orm-help
w
Does anybody know how i can deploy a prisma server on dokku?
Got it working now! 😄
👍 1
i
Wow, how did you do it? I need help...
w
1. Create the app (http://dokku.viewdocs.io/dokku/deployment/application-deployment/#create-the-app) 2. Create the postgres backing service (http://dokku.viewdocs.io/dokku/deployment/application-deployment/#create-the-backing-services) 3. Link the backing service to the app (http://dokku.viewdocs.io/dokku/deployment/application-deployment/#linking-backing-services-to-applications) 4. Create a project folder, initialize a git repo and add dokku remote. 5. Create Dockerfile inside your project folder with the following content:
Copy code
FROM prismagraphql/prisma:1.13-beta
ARG PRISMA_CONFIG_PATH
ENV PRISMA_CONFIG_PATH prisma.yml
COPY config.yml prisma.yml
EXPOSE 4466
6. Create a config.yml file inside your project folder with the following content:
Copy code
port: 4466
databases:
    default:
        connector: postgres
        host: REPLACE_WITH_YOUR_HOST
        port: 5432
        user: postgres
        password: REPLACE_WITH_YOUR_PASSWORD
        migrations: true
        active: true
7. Deploy the app (http://dokku.viewdocs.io/dokku/deployment/application-deployment/#deploy-the-app)
Let me know if you need some help!