From 42be1e7072175ed35fa6f04433fb62f98bb43ea1 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sun, 22 May 2022 14:16:25 -0700 Subject: [PATCH] Add build script --- .render.com/build.sh | 7 +++++++ render.yaml | 1 + 2 files changed, 8 insertions(+) create mode 100644 .render.com/build.sh diff --git a/.render.com/build.sh b/.render.com/build.sh new file mode 100644 index 00000000..8c25fc3a --- /dev/null +++ b/.render.com/build.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -o errexit + +python -m pip install --upgrade pipenv wheel +pipenv install + +python manage.py migrate diff --git a/render.yaml b/render.yaml index de84a1e5..68fa7348 100644 --- a/render.yaml +++ b/render.yaml @@ -7,6 +7,7 @@ services: - type: web name: babybuddy env: python + buildCommand: "./.render.com/build.sh" startCommand: "gunicorn babybuddy.wsgi:application" envVars: - key: DJANGO_SETTINGS_MODULE