Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Codebuff Backend

Deployment

To deploy the Codebuff backend to Google Cloud Platform, follow these steps:

  1. Set up a Google Cloud Platform project and enable the necessary APIs. See: https://cloud.google.com/sdk/docs/install.
  2. Login to the Google Cloud Platform CLI with the command: gcloud auth login.
  3. Set your project ID: to manicode-430317 gcloud config set project manicode-430317
  4. Configure Docker to push to gcloud. gcloud auth configure-docker
  5. Run ./deploy.sh to build and push the Docker image to Google Container Registry.

Database

Environment Variable

  • DATABASE_URL: Set this environment variable in your .env file to connect to the database.

Migrations

  • Migrations are stored in the ./drizzle folder.
  • Run migrations using the migrate script in package.json.