File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,11 @@ function pull_pgsql_ssh() {
64
64
copy_db_dump_locally
65
65
}
66
66
function restore_local_from_remote_mysql() {
67
- ${DB_ZCAT_CMD} " ${TMP_DB_PATH} .gz" | docker exec -i devmode_postgres_1 ${LOCAL_MYSQL_CMD} ${LOCAL_DB_CREDS}
67
+ ${DB_ZCAT_CMD} " ${TMP_DB_PATH} .gz" | docker exec -i ${LOCAL_DB_CONTAINER} ${LOCAL_MYSQL_CMD} ${LOCAL_DB_CREDS}
68
68
echo " *** Restored docker MySQL database from ${TMP_DB_PATH} .gz"
69
69
}
70
70
function restore_local_from_remote_pgsql() {
71
- ${DB_ZCAT_CMD} " ${TMP_DB_PATH} .gz" | docker exec -i devmode_postgres_1 ${LOCAL_PSQL_CMD} --output /dev/null --quiet ${LOCAL_DB_CREDS}
71
+ ${DB_ZCAT_CMD} " ${TMP_DB_PATH} .gz" | docker exec -i ${LOCAL_DB_CONTAINER} ${LOCAL_PSQL_CMD} --output /dev/null --quiet ${LOCAL_DB_CREDS}
72
72
echo " *** Restored docker Postgres database from ${TMP_DB_PATH} .gz"
73
73
}
74
74
Original file line number Diff line number Diff line change 60
60
# Functions
61
61
function restore_local_from_dump_mysql() {
62
62
# Restore the local db from the passed in db dump
63
- $CAT_CMD " ${SRC_DB_PATH} " | docker exec -i devmode_postgres_1 ${LOCAL_MYSQL_CMD} ${LOCAL_DB_CREDS}
63
+ $CAT_CMD " ${SRC_DB_PATH} " | docker exec -i ${LOCAL_DB_CONTAINER} ${LOCAL_MYSQL_CMD} ${LOCAL_DB_CREDS}
64
64
echo " *** Restored docker MySQL database from ${SRC_DB_PATH} "
65
65
}
66
66
function restore_local_from_dump_pgsql() {
67
67
# Restore the local db from the passed in db dump
68
- $CAT_CMD " ${SRC_DB_PATH} " | docker exec -i devmode_postgres_1 ${LOCAL_PSQL_CMD} --output /dev/null --quiet ${LOCAL_DB_CREDS}
68
+ $CAT_CMD " ${SRC_DB_PATH} " | docker exec -i ${LOCAL_DB_CONTAINER} ${LOCAL_PSQL_CMD} --output /dev/null --quiet ${LOCAL_DB_CREDS}
69
69
echo " *** Restored docker Postgres database from ${SRC_DB_PATH} "
70
70
}
71
71
Original file line number Diff line number Diff line change 15
15
# The database driver for this Craft install ('mysql' or 'pgsql')
16
16
GLOBAL_DB_DRIVER=" mysql"
17
17
18
+ # -- LOCAL settings --
19
+
20
+ LOCAL_DB_CONTAINER=" REPLACE_ME"
21
+
18
22
# -- REMOTE settings --
19
23
20
24
# Remote ssh credentials, [email protected] and Remote SSH Port
You can’t perform that action at this time.
0 commit comments