We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0abcb3 commit 03889a4Copy full SHA for 03889a4
build.sh
@@ -0,0 +1,14 @@
1
+#!/usr/bin/env bash
2
+# exit on error
3
+set -o errexit
4
+
5
+# Install modules
6
+python -m pip install --upgrade pip
7
+pip install -r requirements.txt
8
9
+# Collect Static
10
+python manage.py collectstatic --no-input
11
12
+# Migrate DB
13
+python manage.py makemigrations
14
+python manage.py migrate
render.yaml
@@ -0,0 +1,15 @@
+services:
+ - type: web
+ name: core-django
+ plan: starter
+ env: python
+ region: frankfurt # region should be same as your database region.
+ buildCommand: "./build.sh"
+ startCommand: "gunicorn core.wsgi:application"
+ envVars:
+ - key: DEBUG
+ value: False
+ - key: SECRET_KEY
+ generateValue: true
+ - key: WEB_CONCURRENCY
15
+ value: 4
0 commit comments