To deploy the Codebuff backend to Google Cloud Platform, follow these steps:
- Set up a Google Cloud Platform project and enable the necessary APIs. See: https://cloud.google.com/sdk/docs/install.
- Login to the Google Cloud Platform CLI with the command:
gcloud auth login. - Set your project ID: to
manicode-430317gcloud config set project manicode-430317 - Configure Docker to push to gcloud.
gcloud auth configure-docker - Run ./deploy.sh to build and push the Docker image to Google Container Registry.
DATABASE_URL: Set this environment variable in your .env file to connect to the database.
- Migrations are stored in the
./drizzlefolder. - Run migrations using the
migratescript in package.json.