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