From 70ec48d051e7403374c34ff26bf12d0cdcacfcd9 Mon Sep 17 00:00:00 2001 From: Shashi Kant Date: Tue, 18 Jun 2024 17:21:14 +0530 Subject: [PATCH] copying config to /fly --- scripts/entrypoint.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 76bb5c2..8e2afc3 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -91,9 +91,8 @@ deploy() { echo "List: $(find /app -type f)" TF_LOG=DEBUG terraform apply -auto-approve elif [ "$PROVIDER" = "fly" ]; then - mkdir -p /fly/config # todo: handle name collisions - cp -r /app/* /fly/config + cp -r /app/* /fly awk -v config_path="$TC_RELATIVE_PATH" "{sub(/TC_CONFIG_PATH/,config_path)}1" /extras/config.json > /fly/config.json cat /fly/config.json setup_flyctl