From 44bb79cdfde9eaa0c18aedb53e9fdb9d9b89cb70 Mon Sep 17 00:00:00 2001 From: Kumaran Rajendhiran Date: Thu, 20 Jun 2024 14:55:55 +0530 Subject: [PATCH] Add prisma generate command (#14) --- scripts/deploy.sh | 2 ++ scripts/run_server.sh | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index fb3ad21..bc8158a 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -12,6 +12,8 @@ check_variable "TAG" check_variable "GITHUB_USERNAME" check_variable "GITHUB_PASSWORD" check_variable "DOMAIN" +check_variable "CLIENT_SECRET" +check_variable "DATABASE_URL" if [ ! -f key.pem ]; then diff --git a/scripts/run_server.sh b/scripts/run_server.sh index d8e6c98..2e66e1a 100755 --- a/scripts/run_server.sh +++ b/scripts/run_server.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +cat <<< "$CLIENT_SECRET" > client_secret.json + +# ToDo: Uncomment the below line once we have project specific migrations +# prisma migrate deploy +prisma generate + uvicorn google_sheets.app:app --workers 2 --host 0.0.0.0 --proxy-headers