Heroku: Have two running instances

This commit is contained in:
Christian Kamm 2021-12-20 12:40:39 +01:00
parent 1b885355fd
commit a7a53dd6f7
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1,2 @@
connector-mango: ./heroku/run.sh
connector-mango-1: ./heroku/run.sh CONFIG_FILE_1
connector-mango-2: ./heroku/run.sh CONFIG_FILE_2

View File

@ -1,6 +1,8 @@
#!/bin/bash
echo "$CONFIG_FILE" > config.toml
# Write the contents of env variable named by $1
printf '%s\n' "${!1}" > config.toml
echo "$TLS_CA" > ca.pem
echo "$TLS_CLIENT" > client.pem