Commit ebbea78a authored by Eric Chiang's avatar Eric Chiang

*: remove build-units script

closes #159
parent 350571ac
# Deploying
Generate systemd unit files by injecting secrets into the unit file templates located in: `./static/...`.
```
source <path-to-secure>/prod/dex.env.txt
./build-units
```
#!/bin/bash -e
mkdir -p deploy
required=(
${DEX_OVERLORD_DB_URL:?"missing"}
${DEX_OVERLORD_KEY_SECRET:?"missing"}
${DEX_WORKER_DB_URL:?"missing"}
${DEX_WORKER_KEY_SECRET:?"missing"}
)
eval "cat <<EOF
$(<static/dex-worker.service.tmpl)
EOF
" 1> deploy/dex-worker.service
eval "cat <<EOF
$(<static/dex-overlord.service.tmpl)
EOF
" 1> deploy/dex-overlord.service
# example env file for local development to source when using build-units
# dex worker
export DEX_WORKER_KEY_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export DEX_WORKER_OAUTH_CLIENT_ID=CHANGEME
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment