Skip to content

Commit 03889a4

Browse files
committed
Render Deployment Files
1 parent b0abcb3 commit 03889a4

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

build.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
services:
2+
- type: web
3+
name: core-django
4+
plan: starter
5+
env: python
6+
region: frankfurt # region should be same as your database region.
7+
buildCommand: "./build.sh"
8+
startCommand: "gunicorn core.wsgi:application"
9+
envVars:
10+
- key: DEBUG
11+
value: False
12+
- key: SECRET_KEY
13+
generateValue: true
14+
- key: WEB_CONCURRENCY
15+
value: 4

0 commit comments

Comments
 (0)