Skip to content

Deployment

A guide to deploy your project

First make sure you project has no linter errors and is buildable.

Terminal window
# lint
ddev pnpm lint
# build
ddev pnpm build

The next step is to ensure the .env.example and package.json is up to date.

  1. create new environment with the project name
  2. depending on the type (staging or production) click on or create the environment
  3. create and deploy a database Postgres
  4. create the application (Git based private repository)
  5. find repository and select
  6. select docker
  1. change name to project name
  2. update domain name and setup up direction
  1. copy and paste values from .env.example and update everything to the correct values
  2. check the box Use Docker Build Secrets
  1. add volume mount with name next and destination path /app/.next/cache
  2. add directory mount with source <coolify-path>/media and destination /app/media
  3. ssh into server and update permissions of directory mount folder to 777
Terminal window
cd /data/coolify/applications/<application-id>
chmod 777 media
  1. enable health check on path /healthcheck
  1. click deploy button and see if deployment is successful