Skip to content

Commit 969a1c3

Browse files
authored
feat: use Render's Blueprints (Infastructure as Code) to define production deployment (#155)
1 parent 58e054f commit 969a1c3

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"cSpell.words": [
33
"Appsignal",
44
"Ecto",
5+
"rankedvote",
56
"Struct",
67
"Structs",
78
"timestamptz",

render.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Exported from Render on 2025-09-11T13:48:20Z
2+
databases:
3+
- name: flick_prod
4+
databaseName: flick_prod
5+
user: flick_prod_user
6+
plan: basic-256mb
7+
region: oregon
8+
ipAllowList:
9+
- source: 0.0.0.0/0
10+
description: everywhere
11+
postgresMajorVersion: "16"
12+
diskSizeGB: 1
13+
services:
14+
- type: web
15+
name: flick
16+
runtime: elixir
17+
repo: https://github.com/zorn/flick
18+
plan: starter
19+
envVars:
20+
- key: ERLANG_VERSION
21+
value: 27.3.4.2
22+
- key: ELIXIR_VERSION
23+
value: 1.18.4
24+
- key: PHX_HOSTNAME
25+
value: rankedvote.app
26+
- key: SECRET_KEY_BASE
27+
sync: false
28+
- key: PHX_SERVER
29+
value: "true"
30+
- key: BASIC_AUTH_ADMIN_PASSWORD
31+
sync: false
32+
- key: BASIC_AUTH_ADMIN_USERNAME
33+
sync: false
34+
- key: DATABASE_URL
35+
fromDatabase:
36+
name: flick_prod
37+
property: connectionString
38+
region: oregon
39+
buildCommand: ./bin/build.sh
40+
startCommand: _build/prod/rel/flick/bin/flick eval "Flick.Release.migrate" && _build/prod/rel/flick/bin/flick
41+
start
42+
domains:
43+
- www.rankedvote.app
44+
- rankedvote.app
45+
autoDeployTrigger: commit
46+
version: "1"

0 commit comments

Comments
 (0)