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 d5e341d commit 9bcedf6Copy full SHA for 9bcedf6
Procfile
build.sh
@@ -0,0 +1,6 @@
1
+#!/usr/bin/env bash
2
+# exit on error
3
+set -o errexit
4
+
5
+python manage.py collectstatic --no-input
6
+python manage.py migrate
render.yaml
@@ -0,0 +1,20 @@
+databases:
+ - name: django_blog
+ databaseName: django_blog
+ user: django_blog
+services:
7
+ - type: web
8
+ name: django_blog
9
+ env: python
10
+ buildCommand: "./build.sh"
11
+ startCommand: "gunicorn django_blog.wsgi:application"
12
+ envVars:
13
+ - key: DATABASE_URL
14
+ fromDatabase:
15
16
+ property: connectionString
17
+ - key: SECRET_KEY
18
+ generateValue: true
19
+ - key: WEB_CONCURRENCY
20
+ value: 4
0 commit comments