updates replace variables deployment script
This commit is contained in:
Regular → Executable
+7
-1
@@ -7,10 +7,16 @@ if [ -z "${API_URI}" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Find and replace baked values with real values for the API_URI
|
if [ -z "${AWS_REGION}" ]; then
|
||||||
|
echo "AWS_REGION is not set. Exiting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Find and replace baked values with real values for the API_URI AND AWS_REGION
|
||||||
find /app/packages/dashboard/public /app/packages/dashboard/.next -type f -name "*.js" |
|
find /app/packages/dashboard/public /app/packages/dashboard/.next -type f -name "*.js" |
|
||||||
while read file; do
|
while read file; do
|
||||||
sed -i "s|PLUNK_API_URI|${API_URI}|g" "$file"
|
sed -i "s|PLUNK_API_URI|${API_URI}|g" "$file"
|
||||||
|
sed -i "s|PLUNK_AWS_REGION|${AWS_REGION}|g" "$file"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Environment Variables Baked."
|
echo "Environment Variables Baked."
|
||||||
Reference in New Issue
Block a user