feat(DevWeb): Support multiple databases (test, prod)

This commit is contained in:
Lucàs
2024-03-22 17:43:46 +01:00
parent 8e9bfebffe
commit db7750d5aa
9 changed files with 83 additions and 34 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
databases=("db_test" "db_prod")
template="template.sql"
output="init/init.sql"
> "$output"
for database in "${databases[@]}"; do
sed "s/\${database}/$database/g" "$template" >> "$output"
echo "" >> "$output"
done