mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Reorganize files.
This commit is contained in:
parent
67e7a75b9c
commit
00a56f6aaa
4 changed files with 0 additions and 0 deletions
21
stacksmith/user-scripts/boot.sh
Executable file
21
stacksmith/user-scripts/boot.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
# This file will store the config env variables needed by the app
|
||||
readonly CONF=/build/env.config
|
||||
|
||||
# EMAIL_URL can also be set here by injecting another env variable in the template
|
||||
# ROOT_URL can also be set at runtime, by querying AWS api or by using ingress annotations in the template for k8s.
|
||||
|
||||
cat >"${CONF}" <<'EOF'
|
||||
export MONGO_URL=mongodb://{{DATABASE_USER}}:{{DATABASE_PASSWORD}}@{{DATABASE_HOST}}:{{DATABASE_PORT}}/{{DATABASE_NAME}}
|
||||
export ROOT_URL=http://localhost
|
||||
export PORT=3000
|
||||
EOF
|
||||
|
||||
sed -i -e "s/{{DATABASE_USER}}/${DATABASE_USER}/" "${CONF}"
|
||||
sed -i -e "s/{{DATABASE_PASSWORD}}/${DATABASE_PASSWORD}/" "${CONF}"
|
||||
sed -i -e "s/{{DATABASE_HOST}}/${DATABASE_HOST}/" "${CONF}"
|
||||
sed -i -e "s/{{DATABASE_PORT}}/${DATABASE_PORT}/" "${CONF}"
|
||||
sed -i -e "s/{{DATABASE_NAME}}/${DATABASE_NAME}/" "${CONF}"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue