mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-07-09 13:27:45 +00:00
feat(DevWeb): Support multiple databases (test, prod)
This commit is contained in:
Executable
+12
@@ -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
|
||||
Reference in New Issue
Block a user